From 238590aa9fdfe2aac04bb96abad2f2d2feb3101a Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 17 Nov 2022 22:59:10 -0300 Subject: chore: use Rust 1.65.0 (#16688) --- ops/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ops') 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(); -- cgit v1.2.3