fix(fn signature): remove return types from function signatures
This commit is contained in:
@@ -13,7 +13,7 @@ where
|
||||
}
|
||||
|
||||
pub trait BtnEventHandler {
|
||||
fn on_click(self) -> ();
|
||||
fn on_click(self);
|
||||
}
|
||||
|
||||
impl<F, C> BtnEventHandler for EventHandler<F, C>
|
||||
@@ -21,7 +21,7 @@ where
|
||||
F: Fn(&C) + FnOnce(&C) + FnMut(&C) + 'static,
|
||||
C: ButtonExt + WidgetExt,
|
||||
{
|
||||
fn on_click(self) -> () {
|
||||
fn on_click(self) {
|
||||
self.component
|
||||
.connect_clicked(move |button| (self.callback)(button));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user