fix(item builder): remove unnecessary lifetime bound for radio
This commit is contained in:
parent
917af9fda2
commit
f0d8042882
1 changed files with 2 additions and 2 deletions
|
|
@ -208,8 +208,8 @@ impl<'a, Message: Clone + 'static> Item<'a, Message> {
|
||||||
|
|
||||||
pub fn radio<V, F>(self, value: V, selected: Option<V>, f: F) -> list::ListButton<'a, Message>
|
pub fn radio<V, F>(self, value: V, selected: Option<V>, f: F) -> list::ListButton<'a, Message>
|
||||||
where
|
where
|
||||||
V: Eq + Copy + 'static,
|
V: Eq + Copy,
|
||||||
F: Fn(V) -> Message + 'static,
|
F: Fn(V) -> Message,
|
||||||
{
|
{
|
||||||
let on_press = f(value);
|
let on_press = f(value);
|
||||||
list::button(
|
list::button(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue