Introduce Eq
requirement to build a PickList
This commit is contained in:
parent
23647d2f50
commit
d3b04bf892
@ -52,7 +52,7 @@ impl<T> Default for State<T> {
|
||||
impl<'a, T: 'a, Message, Renderer: self::Renderer>
|
||||
PickList<'a, T, Message, Renderer>
|
||||
where
|
||||
T: ToString,
|
||||
T: ToString + Eq,
|
||||
[T]: ToOwned<Owned = Vec<T>>,
|
||||
{
|
||||
/// Creates a new [`PickList`] with the given [`State`], a list of options,
|
||||
|
Loading…
Reference in New Issue
Block a user