Skip to content

Commit c80aee4

Browse files
committed
chore: Fix new clippy warnings
1 parent 168efcb commit c80aee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index_entry.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl IndexEntry {
7575
/// Checks if this index entry is expired according for the TTL given.
7676
#[must_use]
7777
pub fn is_expired_with_ttl(&self, ttl: &Duration) -> bool {
78-
self.atime.map_or(false, |atime| atime.elapsed() > *ttl)
78+
self.atime.is_some_and(|atime| atime.elapsed() > *ttl)
7979
}
8080

8181
/// Gets the HTTP entity tag metadata.

0 commit comments

Comments
 (0)