Use instant instead of wasm-timer in iced_core

This commit is contained in:
Héctor Ramón Jiménez 2023-01-12 06:24:44 +01:00
parent fc54d6ba31
commit c6d0046102
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
11 changed files with 13 additions and 13 deletions

View file

@ -18,6 +18,7 @@ use crate::layout;
use crate::mouse::{self, click};
use crate::renderer;
use crate::text::{self, Text};
use crate::time::{Duration, Instant};
use crate::touch;
use crate::widget;
use crate::widget::operation::{self, Operation};
@ -28,8 +29,6 @@ use crate::{
Rectangle, Shell, Size, Vector, Widget,
};
use instant::{Duration, Instant};
pub use iced_style::text_input::{Appearance, StyleSheet};
/// A field that can be filled with text.

View file

@ -12,8 +12,7 @@ pub use redraw_request::RedrawRequest;
pub use user_attention::UserAttention;
use crate::subscription::{self, Subscription};
use instant::Instant;
use crate::time::Instant;
/// Subscribes to the frames of the window of the running application.
///

View file

@ -1,4 +1,5 @@
use instant::Instant;
use crate::time::Instant;
use std::path::PathBuf;
/// A window-related event.

View file

@ -1,4 +1,4 @@
use instant::Instant;
use crate::time::Instant;
/// A request to redraw a window.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]