summaryrefslogtreecommitdiffstats
path: root/widget/src/combo_box.rs
diff options
context:
space:
mode:
authorLibravatar Thomas <thomasbirke@gmx.de>2023-09-10 10:18:58 +0200
committerLibravatar Thomas <thomasbirke@gmx.de>2023-09-10 10:18:58 +0200
commit90bd581d8ed72ac1a927a90ba04ebdd156fa2922 (patch)
treed46af118d6ca3911986f2ddf2f0f5e92b3d22460 /widget/src/combo_box.rs
parentbc1bde0d5ca1ec291f13e108f1543daa75b97848 (diff)
downloadiced-90bd581d8ed72ac1a927a90ba04ebdd156fa2922.tar.gz
iced-90bd581d8ed72ac1a927a90ba04ebdd156fa2922.tar.bz2
iced-90bd581d8ed72ac1a927a90ba04ebdd156fa2922.zip
Fix `ComboBox` widget panic on wasm
Diffstat (limited to 'widget/src/combo_box.rs')
-rw-r--r--widget/src/combo_box.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs
index 044dc0ef..768c2402 100644
--- a/widget/src/combo_box.rs
+++ b/widget/src/combo_box.rs
@@ -6,6 +6,7 @@ use crate::core::mouse;
use crate::core::overlay;
use crate::core::renderer;
use crate::core::text;
+use crate::core::time::Instant;
use crate::core::widget::{self, Widget};
use crate::core::{Clipboard, Element, Length, Padding, Rectangle, Shell};
use crate::overlay::menu;
@@ -14,7 +15,6 @@ use crate::{container, scrollable, text_input, TextInput};
use std::cell::RefCell;
use std::fmt::Display;
-use std::time::Instant;
/// A widget for searching and selecting a single value from a list of options.
///