From 6d3a07975dfe2bc61dafcd414a5e1ff0ec46dfc9 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 18 Mar 2024 16:21:44 +0900 Subject: [PATCH] Minor refactoring of macro Minor refactoring of macro introduced 2 commits ago. --- src/helper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }