wiggle: fix compilation with async functions when tracing is off (#5203)

Fixes #5202
This commit is contained in:
Joe Shaw
2022-11-04 14:43:00 -04:00
committed by GitHub
parent 387426e7f4
commit 7b7eeac1be
2 changed files with 21 additions and 1 deletions

View File

@@ -118,7 +118,11 @@ fn _define_func(
}.instrument(_span)
)
} else {
quote!(#body)
quote!(
async move {
#body
}
)
};
(
quote!(