diff --git a/src/helper.rs b/src/helper.rs index 0d60a47..859997b 100644 --- a/src/helper.rs +++ b/src/helper.rs @@ -15,7 +15,7 @@ macro_rules! cleanup_func { } } impl $name where T: Fn() -> () { - fn new(func: T) -> Self where T: Fn() -> () { + fn new(func: T) -> Self { Self { func, }