Skip to content

Commit 84524f6

Browse files
committed
Fix rustc 1.85 clippy lint warning
1 parent 4ea27b1 commit 84524f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/page.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Page {
5454

5555
let expirations = OPTIONS
5656
.into_iter()
57-
.filter(|expiration| max_expiration.map_or(true, |max| expiration.seconds <= max))
57+
.filter(|expiration| max_expiration.is_none_or(|max| expiration.seconds <= max))
5858
.collect();
5959

6060
Self {

0 commit comments

Comments
 (0)