Move time module from iced_native to iced_core

This commit is contained in:
Héctor Ramón Jiménez 2022-01-28 17:20:40 +07:00
parent 87b3e03d18
commit 83c649b574
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 6 additions and 5 deletions

View file

@ -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,

View file

@ -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};