From ea653e26d87acf53d4bd7ef4caf5b0d763931074 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 22 Nov 2024 10:54:50 +0530 Subject: [PATCH] x --- ops/op2/object_wrap.rs | 6 ++---- test.mjs | 8 -------- testing/checkin/runner/ops.rs | 6 ------ 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 test.mjs diff --git a/ops/op2/object_wrap.rs b/ops/op2/object_wrap.rs index 5a3f0e294..a9e0a4cbc 100644 --- a/ops/op2/object_wrap.rs +++ b/ops/op2/object_wrap.rs @@ -84,10 +84,8 @@ pub(crate) fn generate_impl_ops( for item in item.items { if let ImplItem::Fn(mut method) = item { - let (item_fn_attrs, attrs) = method - .attrs - .into_iter() - .partition(|attr| is_attribute_special(attr)); + let (item_fn_attrs, attrs) = + method.attrs.into_iter().partition(is_attribute_special); /* Convert snake_case to camelCase */ method.sig.ident = format_ident!( diff --git a/test.mjs b/test.mjs deleted file mode 100644 index a405bc27e..000000000 --- a/test.mjs +++ /dev/null @@ -1,8 +0,0 @@ -const { DOMPoint } = Deno.core.ops; - -const point = new DOMPoint(1, 2, 3, 4); - -point.x; - -point.stuff(); - diff --git a/testing/checkin/runner/ops.rs b/testing/checkin/runner/ops.rs index f2f216e70..042f49e3c 100644 --- a/testing/checkin/runner/ops.rs +++ b/testing/checkin/runner/ops.rs @@ -81,12 +81,6 @@ impl GarbageCollected for DOMPoint {} #[op2] impl DOMPoint { - #[fast] - #[required(1)] - fn stuff(&self) { - println!("stuff"); - } - #[constructor] #[cppgc] fn new(