Use Instant from iced_core instead of std

This is needed for Wasm compatibility.
This commit is contained in:
Héctor Ramón Jiménez 2023-11-14 12:52:03 +01:00
parent 882ae304ac
commit c2baf18cbf
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -1,10 +1,9 @@
//! Handle events of a custom shader widget.
use crate::core::keyboard;
use crate::core::mouse;
use crate::core::time::Instant;
use crate::core::touch;
use std::time::Instant;
pub use crate::core::event::Status;
/// A [`Shader`] event.