diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-11-17 22:59:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 02:59:10 +0100 |
commit | 238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch) | |
tree | f8fa04e39baecb5460076c1329ca38ae31f440b6 /ops/lib.rs | |
parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'ops/lib.rs')
-rw-r--r-- | ops/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ops/lib.rs b/ops/lib.rs index d295ec9bd..4d0c89bd2 100644 --- a/ops/lib.rs +++ b/ops/lib.rs @@ -47,8 +47,6 @@ struct Op { impl Op { fn new(mut item: ItemFn, attrs: Attributes) -> Self { - add_scope_lifetime(&mut item); - // Preserve the original function. Change the name to `call`. // // impl op_foo { @@ -58,6 +56,8 @@ impl Op { let mut orig = item.clone(); orig.sig.ident = Ident::new("call", Span::call_site()); + add_scope_lifetime(&mut item); + let is_async = item.sig.asyncness.is_some() || is_future(&item.sig.output); let type_params = exclude_lifetime_params(&item.sig.generics.params); let core = deno::import(); |