Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6185eb67 authored by Charisee's avatar Charisee Committed by Charisee Chiw
Browse files

Update needed for Rust v1.73.0

https://rust-lang.github.io/rust-clippy/master/index.html#/unwrap_or_default

bug: http://b/303252546
Change-Id: Ia43ebcd7bae63d1df53bf4d237d5b4af44ca0c00
Merged-In: I1650c8109559c8818d796d01269b994802a1ed21
parent aa753e41
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -209,10 +209,7 @@ impl InputVerifier {

        match action.into() {
            MotionAction::Down => {
                let it = self
                    .touching_pointer_ids_by_device
                    .entry(device_id)
                    .or_insert_with(HashSet::new);
                let it = self.touching_pointer_ids_by_device.entry(device_id).or_default();
                let pointer_id = pointer_properties[0].id;
                if it.contains(&pointer_id) {
                    return Err(format!(