diff options
author | 2023-01-12 05:26:39 +0100 | |
---|---|---|
committer | 2023-01-12 05:26:39 +0100 | |
commit | fc54d6ba31246157422d092914ba7c1e483129c4 (patch) | |
tree | 4de3fc6a870506db7f87b389bdf94061e3ee7187 /glutin | |
parent | e2ddef74387bcd81859b56e47316c47d7b739a01 (diff) | |
download | iced-fc54d6ba31246157422d092914ba7c1e483129c4.tar.gz iced-fc54d6ba31246157422d092914ba7c1e483129c4.tar.bz2 iced-fc54d6ba31246157422d092914ba7c1e483129c4.zip |
Use `instant` to fix Wasm target
Diffstat (limited to 'glutin')
-rw-r--r-- | glutin/Cargo.toml | 7 | ||||
-rw-r--r-- | glutin/src/application.rs | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index 304170cd..a458ee9e 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -15,8 +15,9 @@ trace = ["iced_winit/trace"] debug = ["iced_winit/debug"] system = ["iced_winit/system"] -[dependencies.log] -version = "0.4" +[dependencies] +log = "0.4" +instant = "0.1" [dependencies.glutin] version = "0.29" @@ -39,4 +40,4 @@ features = ["opengl"] [dependencies.tracing] version = "0.1.6" -optional = true
\ No newline at end of file +optional = true diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 3bb9e61a..a2096ee4 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -15,8 +15,8 @@ use iced_winit::user_interface; use iced_winit::{Clipboard, Command, Debug, Event, Proxy, Settings}; use glutin::window::Window; +use instant::Instant; use std::mem::ManuallyDrop; -use std::time::Instant; #[cfg(feature = "tracing")] use tracing::{info_span, instrument::Instrument}; |