summaryrefslogtreecommitdiffstats
path: root/core/src/time.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-12-15 13:15:44 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-12-15 13:39:00 +0100
commite819c2390bad76e811265245bd5fab63fc30a8b2 (patch)
treee19db58cbf4cd5529bd74f1f82764103f59f2236 /core/src/time.rs
parentdd249a1d11c68b8fee1828d58bae158946ee2ebd (diff)
downloadiced-e819c2390bad76e811265245bd5fab63fc30a8b2.tar.gz
iced-e819c2390bad76e811265245bd5fab63fc30a8b2.tar.bz2
iced-e819c2390bad76e811265245bd5fab63fc30a8b2.zip
Update `winit` to `0.29.4`
Diffstat (limited to 'core/src/time.rs')
-rw-r--r--core/src/time.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/core/src/time.rs b/core/src/time.rs
index 9355ae6d..dcfe4e41 100644
--- a/core/src/time.rs
+++ b/core/src/time.rs
@@ -1,13 +1,4 @@
//! Keep track of time, both in native and web platforms!
-#[cfg(target_arch = "wasm32")]
-pub use instant::Instant;
-
-#[cfg(target_arch = "wasm32")]
-pub use instant::Duration;
-
-#[cfg(not(target_arch = "wasm32"))]
-pub use std::time::Instant;
-
-#[cfg(not(target_arch = "wasm32"))]
-pub use std::time::Duration;
+pub use web_time::Duration;
+pub use web_time::Instant;