Implement Default for combo_box::State
This commit is contained in:
parent
acf6daff46
commit
3d99da805d
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue