From aff95d0271240579fad74d374e8404ef38c622dc Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 25 Jan 2024 23:31:59 +0800 Subject: [PATCH] chore(napi): remove napi_val on Ref because it is unused --- crates/napi/src/env.rs | 2 -- crates/napi/src/js_values/value_ref.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/crates/napi/src/env.rs b/crates/napi/src/env.rs index 4b0a32af..92bbdc9b 100644 --- a/crates/napi/src/env.rs +++ b/crates/napi/src/env.rs @@ -833,7 +833,6 @@ impl Env { raw_ref, count: 1, inner: (), - raw_value, }) } @@ -851,7 +850,6 @@ impl Env { raw_ref, count: ref_count, inner: (), - raw_value, }) } diff --git a/crates/napi/src/js_values/value_ref.rs b/crates/napi/src/js_values/value_ref.rs index d3eafbbc..f21e9c8f 100644 --- a/crates/napi/src/js_values/value_ref.rs +++ b/crates/napi/src/js_values/value_ref.rs @@ -8,7 +8,6 @@ pub struct Ref { pub(crate) raw_ref: sys::napi_ref, pub(crate) count: u32, pub(crate) inner: T, - pub(crate) raw_value: sys::napi_value, } #[allow(clippy::non_send_fields_in_send_ty)] @@ -26,7 +25,6 @@ impl Ref { raw_ref, count: ref_count, inner, - raw_value: js_value.value, }) }