Skip to content

Commit

Permalink
Apply Clippy fixes for Rust 1.85.0 (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche authored Feb 28, 2025
1 parent 6cd43e9 commit a9a3b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/replica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ impl Replica {
.drain()
.filter(|(_, t)| t.get("status") == Some(deleted))
.filter(|(_, t)| {
t.get("modified").map_or(false, |m| {
m.parse().map_or(false, |time_sec| {
DateTime::from_timestamp(time_sec, 0).map_or(false, |dt| dt < six_mos_ago)
t.get("modified").is_some_and(|m| {
m.parse().is_ok_and(|time_sec| {
DateTime::from_timestamp(time_sec, 0).is_some_and(|dt| dt < six_mos_ago)
})
})
})
Expand Down

0 comments on commit a9a3b12

Please sign in to comment.