Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Saveau committed Dec 8, 2024
1 parent 2079588 commit 4c516ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/io_uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub mod types {
if Self::DATA_START
.checked_add(msghdr_name_len)
.and_then(|acc| acc.checked_add(msghdr_control_len))
.map_or(true, |header_len| buffer.len() < header_len)
.is_none_or(|header_len| buffer.len() < header_len)
{
return Err(());
}
Expand Down
2 changes: 1 addition & 1 deletion watcher-utils/src/best_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl<Id: id::AsId<Id: Eq>> BestMimeTypeFinder<Id> {
chromium_custom
} else if mime.starts_with("text/") {
any_text
} else if mime.chars().next().map_or(true, char::is_lowercase) {
} else if mime.chars().next().is_none_or(char::is_lowercase) {
other
} else {
return;
Expand Down

0 comments on commit 4c516ea

Please sign in to comment.