From 7c3f8b514ef1f15e1e38489b77ae34858b9b85fd Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 20 Nov 2023 14:20:25 +0800 Subject: [PATCH] fix(napi-derive): compile warning (#1820) --- crates/macro/src/expand/napi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/macro/src/expand/napi.rs b/crates/macro/src/expand/napi.rs index 6b5d1b74..e9b3f596 100644 --- a/crates/macro/src/expand/napi.rs +++ b/crates/macro/src/expand/napi.rs @@ -6,9 +6,9 @@ use std::io::Write; use std::sync::atomic::{AtomicBool, Ordering}; use crate::parser::{attrs::BindgenAttrs, ParseNapi}; +use napi_derive_backend::{BindgenResult, TryToTokens, REGISTER_IDENTS}; #[cfg(feature = "type-def")] -use napi_derive_backend::ToTypeDef; -use napi_derive_backend::{BindgenResult, Napi, TryToTokens, REGISTER_IDENTS}; +use napi_derive_backend::{Napi, ToTypeDef}; use proc_macro2::{TokenStream, TokenTree}; use quote::ToTokens; use syn::{Attribute, Item};