We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 168efcb commit c80aee4Copy full SHA for c80aee4
src/index_entry.rs
@@ -75,7 +75,7 @@ impl IndexEntry {
75
/// Checks if this index entry is expired according for the TTL given.
76
#[must_use]
77
pub fn is_expired_with_ttl(&self, ttl: &Duration) -> bool {
78
- self.atime.map_or(false, |atime| atime.elapsed() > *ttl)
+ self.atime.is_some_and(|atime| atime.elapsed() > *ttl)
79
}
80
81
/// Gets the HTTP entity tag metadata.
0 commit comments