fix(napi-derive): compile warning (#1820)

This commit is contained in:
LongYinan 2023-11-20 14:20:25 +08:00 committed by GitHub
parent 8c911b5d34
commit 7c3f8b514e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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};