fix(func signature): Replaced EventHandler<T, C> -> Self
This commit is contained in:
1 parent
54a4b44780
commit
fd2f605978
1 file changed
+1
-1
@@ -4,7 +4,7 @@ impl<F, C> EventHandler<F, C>
|
|||||||
where
|
where
|
||||||
F: Fn(&C) + FnOnce(&C) + FnMut(&C),
|
F: Fn(&C) + FnOnce(&C) + FnMut(&C),
|
||||||
{
|
{
|
||||||
pub fn new(component: C, callback: F) -> EventHandler<F, C> {
|
pub fn new(component: C, callback: F) -> Self {
|
||||||
Self {
|
Self {
|
||||||
component,
|
component,
|
||||||
callback,
|
callback,
|
||||||
|
|||||||
Reference in new issue
Block a user