diff --git a/src/helper.rs b/src/helper.rs index 859997b..32e3205 100644 --- a/src/helper.rs +++ b/src/helper.rs @@ -6,15 +6,15 @@ macro_rules! cleanup_func { $(var_pair: $orig_var:expr, $new_var:ident),*) => { $(let $new_var = $orig_var;)* - struct $name ()> { + struct $name { func: T, } - impl Drop for $name where T: Fn() -> () { + impl Drop for $name where T: Fn() { fn drop(&mut self) { (self.func)(); } } - impl $name where T: Fn() -> () { + impl $name where T: Fn() { fn new(func: T) -> Self { Self { func,