From f7a101db01c20c207d836c39c63afb4567655be7 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 7 Dec 2021 21:45:40 +0800 Subject: [PATCH] chore: cleanup stale codes --- crates/backend/src/typegen.rs | 1 - crates/napi/src/bindgen_runtime/js_values/string.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/crates/backend/src/typegen.rs b/crates/backend/src/typegen.rs index 8076e4b9..86aa6092 100644 --- a/crates/backend/src/typegen.rs +++ b/crates/backend/src/typegen.rs @@ -145,7 +145,6 @@ static KNOWN_TYPES: Lazy> = Lazy::new(|| { ("Date", "Date"), ("JsBuffer", "Buffer"), ("Buffer", "Buffer"), - // TODO: Vec should be Buffer, now is Array ("Vec", "Array<{}>"), ("Result", "Error | {}"), ("Either", "{} | {}"), diff --git a/crates/napi/src/bindgen_runtime/js_values/string.rs b/crates/napi/src/bindgen_runtime/js_values/string.rs index 6a7d618d..c60c1bc1 100644 --- a/crates/napi/src/bindgen_runtime/js_values/string.rs +++ b/crates/napi/src/bindgen_runtime/js_values/string.rs @@ -230,7 +230,6 @@ pub mod latin1_string { } } - #[cfg(feature = "latin1")] impl FromNapiValue for Latin1String { unsafe fn from_napi_value(env: sys::napi_env, napi_val: sys::napi_value) -> Result { let mut len = 0;