summaryrefslogtreecommitdiffstats
path: root/native/src
diff options
context:
space:
mode:
Diffstat (limited to 'native/src')
-rw-r--r--native/src/lib.rs2
-rw-r--r--native/src/time.rs7
2 files changed, 1 insertions, 8 deletions
diff --git a/native/src/lib.rs b/native/src/lib.rs
index bd50c6b2..6d98f7d1 100644
--- a/native/src/lib.rs
+++ b/native/src/lib.rs
@@ -49,7 +49,6 @@ pub mod renderer;
pub mod subscription;
pub mod svg;
pub mod text;
-pub mod time;
pub mod touch;
pub mod user_interface;
pub mod widget;
@@ -70,6 +69,7 @@ mod debug;
mod debug;
pub use iced_core::alignment;
+pub use iced_core::time;
pub use iced_core::{
Alignment, Background, Color, Font, Length, Padding, Point, Rectangle,
Size, Vector,
diff --git a/native/src/time.rs b/native/src/time.rs
deleted file mode 100644
index 5f95ee86..00000000
--- a/native/src/time.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-//! Keep track of time, both in native and web platforms!
-
-#[cfg(target_arch = "wasm32")]
-pub use instant::{Duration, Instant};
-
-#[cfg(not(target_arch = "wasm32"))]
-pub use std::time::{Duration, Instant};