Skip to content

Commit

Permalink
Fix new clippy::unnecessary_map_or lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BBaoVanC committed Jan 17, 2025
1 parent 799697b commit a041d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bobashare/src/storage/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Upload {
pub fn is_expired(&self) -> bool {
// if None (never expires) then not expired (false)
// otherwise if expiry is before now, then it is expired
self.expiry_date.map_or(false, |e| e < Utc::now())
self.expiry_date.is_some_and(|e| e < Utc::now())
}
}

Expand Down

0 comments on commit a041d4a

Please sign in to comment.