Introduce Eq requirement to build a PickList

This commit is contained in:
Héctor Ramón Jiménez 2020-10-24 09:32:23 +02:00
parent 23647d2f50
commit d3b04bf892

View File

@ -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,