summaryrefslogtreecommitdiff
path: root/src/conversation/history.rs
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-08-26 02:23:55 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-08-26 17:42:37 -0400
commita54c548bf00f881f36d2adc3a6a2614b5f72f9ce (patch)
tree4bd7281b65232ed04cf0c2a1c9eff360fa37a409 /src/conversation/history.rs
parent7b131e35fdea1a68aaf9230d157bafb200557ef8 (diff)
Allow callers to pass `Instant`s to `Sequence` predicate constructors.
Diffstat (limited to 'src/conversation/history.rs')
-rw-r--r--src/conversation/history.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/conversation/history.rs b/src/conversation/history.rs
index 746a1b0..8821277 100644
--- a/src/conversation/history.rs
+++ b/src/conversation/history.rs
@@ -30,9 +30,7 @@ impl History {
where
S: Into<Sequence>,
{
- self.events()
- .filter(Sequence::up_to(sequence.into()))
- .collect()
+ self.events().filter(Sequence::up_to(sequence)).collect()
}
// Snapshot of this conversation as of all events recorded in this history.