diff options
author | 2023-09-20 16:26:43 +0200 | |
---|---|---|
committer | 2023-09-20 16:26:43 +0200 | |
commit | b27762554627b8e89f2b840b1a8a512e22d4cd87 (patch) | |
tree | 4099870d14980fb2651dc50786639ca704a55074 /core/src/mouse | |
parent | 76873921af3cd04ac0cbed01ebbd66936454dbe3 (diff) | |
download | iced-b27762554627b8e89f2b840b1a8a512e22d4cd87.tar.gz iced-b27762554627b8e89f2b840b1a8a512e22d4cd87.tar.bz2 iced-b27762554627b8e89f2b840b1a8a512e22d4cd87.zip |
Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d7ee6e77085e50e5e599002549d228f.
Diffstat (limited to 'core/src/mouse')
-rw-r--r-- | core/src/mouse/click.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/mouse/click.rs b/core/src/mouse/click.rs index 53354098..9cc44a71 100644 --- a/core/src/mouse/click.rs +++ b/core/src/mouse/click.rs @@ -69,6 +69,8 @@ impl Click { }; self.position == new_position - && duration.is_some_and(|duration| duration.as_millis() <= 300) + && duration + .map(|duration| duration.as_millis() <= 300) + .unwrap_or(false) } } |