From e4ca46f32bac7810e8ca32bf4ea6eb81a4f88391 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 23 Nov 2021 14:49:24 +0800 Subject: [PATCH] style: clippy fix --- crates/napi/src/bindgen_runtime/js_values/either.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/napi/src/bindgen_runtime/js_values/either.rs b/crates/napi/src/bindgen_runtime/js_values/either.rs index 2574b10a..21f3518c 100644 --- a/crates/napi/src/bindgen_runtime/js_values/either.rs +++ b/crates/napi/src/bindgen_runtime/js_values/either.rs @@ -17,6 +17,8 @@ impl< B: TypeName + FromNapiValue + ToNapiValue + NapiRaw, > Either { + /// # Safety + /// Backward compatible with `Either` in **v1** pub unsafe fn raw(&self) -> napi_sys::napi_value { match &self { Self::A(a) => a.raw(),