Minor refactoring of macro

Minor refactoring of macro introduced 2 commits ago.
This commit is contained in:
Stephen Seo 2024-03-18 16:21:44 +09:00
parent 60fc98f73b
commit 6d3a07975d

View file

@ -15,7 +15,7 @@ macro_rules! cleanup_func {
}
}
impl<T> $name <T> where T: Fn() -> () {
fn new(func: T) -> Self where T: Fn() -> () {
fn new(func: T) -> Self {
Self {
func,
}