summaryrefslogtreecommitdiffstats
path: root/native/src/debug/basic.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 17:05:09 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:16 +0700
commit87b3e03d187237f665b376018ea5af0cc5f05814 (patch)
tree71509d53f85ed76b1ad2d187652d818230618767 /native/src/debug/basic.rs
parent776724162aa4351310de9f88c7bb8d61b0abca04 (diff)
downloadiced-87b3e03d187237f665b376018ea5af0cc5f05814.tar.gz
iced-87b3e03d187237f665b376018ea5af0cc5f05814.tar.bz2
iced-87b3e03d187237f665b376018ea5af0cc5f05814.zip
Enable `instant` only for `wasm32` targets
... and hide the dependency under a `time` module in `iced_native`
Diffstat (limited to 'native/src/debug/basic.rs')
-rw-r--r--native/src/debug/basic.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/native/src/debug/basic.rs b/native/src/debug/basic.rs
index a42f66ea..d706bb00 100644
--- a/native/src/debug/basic.rs
+++ b/native/src/debug/basic.rs
@@ -1,5 +1,7 @@
#![allow(missing_docs)]
-use std::{collections::VecDeque, time};
+use crate::time;
+
+use std::collections::VecDeque;
/// A bunch of time measurements for debugging purposes.
#[derive(Debug)]