mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
chore: use Rust 1.65.0 (#16688)
This commit is contained in:
parent
483c10c94b
commit
238590aa9f
48 changed files with 119 additions and 130 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue