refactor(toggler): remove required on_toggle function
This commit is contained in:
parent
f0a38aa1ad
commit
a73e91a12b
2 changed files with 1 additions and 3 deletions
|
|
@ -132,6 +132,6 @@ impl<'a, Message: 'static> Item<'a, Message> {
|
|||
is_checked: bool,
|
||||
message: impl Fn(bool) -> Message + 'static,
|
||||
) -> Row<'a, Message> {
|
||||
self.control(crate::widget::toggler(is_checked, message))
|
||||
self.control(crate::widget::toggler(is_checked).on_toggle(message))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue