summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Kai Mast <kaimast@cs.wisc.edu>2022-01-22 18:39:59 -0600
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:15 +0700
commit9f47ac8d3158ba8a54730dddea5b58a9926b6e1b (patch)
treef34860a5cc02401f6cacdca977af45a2d5718c64 /native
parentbdca20fc4a3e8f6bd8ffb59de75e6ca0f8a94b6a (diff)
downloadiced-9f47ac8d3158ba8a54730dddea5b58a9926b6e1b.tar.gz
iced-9f47ac8d3158ba8a54730dddea5b58a9926b6e1b.tar.bz2
iced-9f47ac8d3158ba8a54730dddea5b58a9926b6e1b.zip
Use instant instead of std::instant
Diffstat (limited to 'native')
-rw-r--r--native/Cargo.toml1
-rw-r--r--native/src/mouse/click.rs2
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)]