Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Jun 27, 2023
1 parent c76e8df commit b901253
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/src/history/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use tokio::time::Instant;

use crate::history::{self, History};
use crate::message::{self, Limit};
use crate::time::Posix;
use crate::user::Nick;
use crate::{server, Server};

Expand Down Expand Up @@ -246,7 +245,7 @@ fn with_limit<'a>(
collected[length.saturating_sub(n)..length].to_vec()
}
Some(Limit::Since(timestamp)) => messages
.skip_while(|message| Posix::from(message.received_at) < timestamp)
.skip_while(|message| message.received_at < timestamp)
.collect(),
None => messages.collect(),
}
Expand Down

0 comments on commit b901253

Please sign in to comment.