mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix option_map_unit_fn warnings (#31906)
This commit is contained in:
parent
a5bcae212a
commit
da76ebabe9
11 changed files with 43 additions and 30 deletions
|
@ -126,9 +126,9 @@ impl Animations {
|
|||
pub(crate) fn cancel_animations_for_node(&self, node: &Node) {
|
||||
let mut animations = self.sets.sets.write();
|
||||
let mut cancel_animations_for = |key| {
|
||||
animations.get_mut(&key).map(|set| {
|
||||
if let Some(set) = animations.get_mut(&key) {
|
||||
set.cancel_all_animations();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
let opaque_node = node.to_opaque();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue