Skip to content

Commit

Permalink
Introduce Eq requirement to build a PickList
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Oct 24, 2020
1 parent 23647d2 commit d3b04bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/widget/pick_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d3b04bf

Please sign in to comment.