Minor refactoring of macro
Minor refactoring of macro introduced 2 commits ago.
This commit is contained in:
parent
60fc98f73b
commit
6d3a07975d
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ macro_rules! cleanup_func {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl<T> $name <T> where T: Fn() -> () {
|
impl<T> $name <T> where T: Fn() -> () {
|
||||||
fn new(func: T) -> Self where T: Fn() -> () {
|
fn new(func: T) -> Self {
|
||||||
Self {
|
Self {
|
||||||
func,
|
func,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue