Use instant to fix Wasm target
This commit is contained in:
parent
e2ddef7438
commit
fc54d6ba31
9 changed files with 12 additions and 9 deletions
|
|
@ -28,7 +28,7 @@ use crate::{
|
|||
Rectangle, Shell, Size, Vector, Widget,
|
||||
};
|
||||
|
||||
use std::time::{Duration, Instant};
|
||||
use instant::{Duration, Instant};
|
||||
|
||||
pub use iced_style::text_input::{Appearance, StyleSheet};
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ pub use user_attention::UserAttention;
|
|||
|
||||
use crate::subscription::{self, Subscription};
|
||||
|
||||
use std::time::Instant;
|
||||
use instant::Instant;
|
||||
|
||||
/// Subscribes to the frames of the window of the running application.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use instant::Instant;
|
||||
use std::path::PathBuf;
|
||||
use std::time::Instant;
|
||||
|
||||
/// A window-related event.
|
||||
#[derive(PartialEq, Eq, Clone, Debug)]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use std::time::Instant;
|
||||
use instant::Instant;
|
||||
|
||||
/// A request to redraw a window.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue