Lifetime issue.

This commit is contained in:
Tom Alexander
2023-10-29 20:01:44 -04:00
parent a966be8122
commit f1e985fb32
2 changed files with 15 additions and 29 deletions

View File

@@ -49,12 +49,9 @@ macro_rules! iselector {
registry: &'reg mut Registry<'orig, 'parse>,
original: &'orig organic::types::$pstruct<'parse>,
) -> BoxFuture<'inp, Result<$istruct, CustomError>> {
async move {
let $registry = registry;
let $original = original;
$fnbody
}
.boxed()
let $registry = registry;
let $original = original;
async move { $fnbody }.boxed()
}
}
};