diff --git a/crates/backend/src/ast.rs b/crates/backend/src/ast.rs index 64677f82..101dfc54 100644 --- a/crates/backend/src/ast.rs +++ b/crates/backend/src/ast.rs @@ -54,7 +54,7 @@ pub enum NapiFnArgKind { Callback(Box), } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum FnKind { Normal, Constructor, @@ -84,7 +84,7 @@ pub struct NapiStruct { pub use_custom_finalize: bool, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum NapiStructKind { None, Constructor, diff --git a/crates/backend/src/typegen/fn.rs b/crates/backend/src/typegen/fn.rs index e9122006..b6ae0fd0 100644 --- a/crates/backend/src/typegen/fn.rs +++ b/crates/backend/src/typegen/fn.rs @@ -153,7 +153,7 @@ impl NapiFn { } if ident == "This" { if let Some(syn::GenericArgument::Type(ty)) = angle_bracketed_args.first() { - let (ts_type, _) = ty_to_ts_type(&ty, false, false); + let (ts_type, _) = ty_to_ts_type(ty, false, false); return Some(FnArg { arg: "this".to_owned(), ts_type, diff --git a/examples/napi/src/lib.rs b/examples/napi/src/lib.rs index 189f1eef..1825406c 100644 --- a/examples/napi/src/lib.rs +++ b/examples/napi/src/lib.rs @@ -1,5 +1,6 @@ #![allow(dead_code)] #![allow(unreachable_code)] +#![allow(clippy::blacklisted_name)] #[macro_use] extern crate napi_derive;