diff --git a/src/core/utils/defer.rs b/src/core/utils/defer.rs index 2762d4fa..9d42e679 100644 --- a/src/core/utils/defer.rs +++ b/src/core/utils/defer.rs @@ -1,17 +1,11 @@ #[macro_export] macro_rules! defer { ($body:block) => { - struct _Defer_ - where - F: FnMut(), - { + struct _Defer_ { closure: F, } - impl Drop for _Defer_ - where - F: FnMut(), - { + impl Drop for _Defer_ { fn drop(&mut self) { (self.closure)(); } }