diff options
Diffstat (limited to 'native')
-rw-r--r-- | native/Cargo.toml | 1 | ||||
-rw-r--r-- | native/src/mouse/click.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/native/Cargo.toml b/native/Cargo.toml index 8f0aea6a..d8e75a4e 100644 --- a/native/Cargo.toml +++ b/native/Cargo.toml @@ -14,6 +14,7 @@ debug = [] twox-hash = { version = "1.5", default-features = false } unicode-segmentation = "1.6" num-traits = "0.2" +instant = { version="0.1", features=["wasm-bindgen"] } [dependencies.iced_core] version = "0.4" diff --git a/native/src/mouse/click.rs b/native/src/mouse/click.rs index 6c8b61a5..58cfda61 100644 --- a/native/src/mouse/click.rs +++ b/native/src/mouse/click.rs @@ -1,6 +1,6 @@ //! Track mouse clicks. use crate::Point; -use std::time::Instant; +use instant::Instant; /// A mouse click. #[derive(Debug, Clone, Copy)] |