chore(napi): remove napi_val on Ref because it is unused

This commit is contained in:
LongYinan 2024-01-25 23:31:59 +08:00
parent 4ba481c49d
commit aff95d0271
No known key found for this signature in database
GPG key ID: 30B1140CE1C07C99
2 changed files with 0 additions and 4 deletions

View file

@ -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,
})
}

View file

@ -8,7 +8,6 @@ pub struct Ref<T> {
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<T> Ref<T> {
raw_ref,
count: ref_count,
inner,
raw_value: js_value.value,
})
}