Skip to content

Commit

Permalink
Fixed new clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Jan 15, 2025
1 parent abc1c64 commit f052987
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ where
}

pub fn drop_first_mut(&mut self) -> bool {
self.head.take().map_or(false, |h| {
self.head.take().is_some_and(|h| {
self.head.clone_from(&h.next);
self.length -= 1;

Expand Down
2 changes: 1 addition & 1 deletion src/map/hash_trie_map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ where
return true;
}
self.size() == other.size()
&& self.iter().all(|(key, value)| other.get(key).map_or(false, |v| *value == *v))
&& self.iter().all(|(key, value)| other.get(key).is_some_and(|v| *value == *v))
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/map/red_black_tree_map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ where
return true;
}
self.size() == other.size()
&& self.iter().all(|(key, value)| other.get(key).map_or(false, |v| *value == *v))
&& self.iter().all(|(key, value)| other.get(key).is_some_and(|v| *value == *v))
}
}

Expand Down

0 comments on commit f052987

Please sign in to comment.