Skip to content

Commit eb9d1e5

Browse files
committed
fix: clippy recommandations
1 parent c7c8814 commit eb9d1e5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

common/src/expiration.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ impl Expiration {
4444
}
4545
let now = SystemTime::now()
4646
.duration_since(UNIX_EPOCH)
47-
.map(|d| d.as_secs())
48-
.unwrap_or(0);
47+
.map_or(0, |d| d.as_secs());
4948
self.0 <= now
5049
}
5150
}

0 commit comments

Comments
 (0)