Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Oct 30, 2023
1 parent e238dba commit 8f25f08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions remote/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,12 @@ impl<P: RemotePermissions> Database for Remote<P> {
for mutation in write.mutations {
let expire_at_ms = mutation
.expire_at
.and_then(|t| {
.map(|t| {
let ts = t.timestamp_millis();
if ts <= 0 {
Some(1)
1
} else {
Some(ts)
ts
}
})
.unwrap_or(0);
Expand Down

0 comments on commit 8f25f08

Please sign in to comment.