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>
|
impl<T> Filtered<T>
|
||||||
where
|
where
|
||||||
T: Clone,
|
T: Clone,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue