diff options
author | 2023-09-10 10:18:58 +0200 | |
---|---|---|
committer | 2023-09-10 10:18:58 +0200 | |
commit | 90bd581d8ed72ac1a927a90ba04ebdd156fa2922 (patch) | |
tree | d46af118d6ca3911986f2ddf2f0f5e92b3d22460 /widget/src/combo_box.rs | |
parent | bc1bde0d5ca1ec291f13e108f1543daa75b97848 (diff) | |
download | iced-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.rs | 2 |
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. /// |