From 9f47ac8d3158ba8a54730dddea5b58a9926b6e1b Mon Sep 17 00:00:00 2001 From: Kai Mast Date: Sat, 22 Jan 2022 18:39:59 -0600 Subject: Use instant instead of std::instant --- native/Cargo.toml | 1 + native/src/mouse/click.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'native') 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)] -- cgit