Implement Default for combo_box::State

This commit is contained in:
Héctor Ramón Jiménez 2024-07-09 00:27:59 +02:00
parent acf6daff46
commit 3d99da805d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -280,6 +280,15 @@ where
}
}
impl<T> Default for State<T>
where
T: Display + Clone,
{
fn default() -> Self {
Self::new(Vec::new())
}
}
impl<T> Filtered<T>
where
T: Clone,