summaryrefslogtreecommitdiffstats
path: root/native/src/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-12 06:24:44 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-01-12 06:25:59 +0100
commitc6d0046102bb6951bf0f1f6102f748199c5889e2 (patch)
treefe4b5212f4fc5dc6123c1441087f8b9d505679ce /native/src/widget
parentfc54d6ba31246157422d092914ba7c1e483129c4 (diff)
downloadiced-c6d0046102bb6951bf0f1f6102f748199c5889e2.tar.gz
iced-c6d0046102bb6951bf0f1f6102f748199c5889e2.tar.bz2
iced-c6d0046102bb6951bf0f1f6102f748199c5889e2.zip
Use `instant` instead of `wasm-timer` in `iced_core`
Diffstat (limited to 'native/src/widget')
-rw-r--r--native/src/widget/text_input.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index e5b7d93a..8755b85d 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -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.