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

Commit d3fd4926 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#unnecessary_unwrap

bug: http://b/303252546
Test: m rust
Change-Id: Ib24b7cc3781037394515a2e86b08dd9bf3721e09
Merged-In: I1650c8109559c8818d796d01269b994802a1ed21
parent 92571659
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!(