fix cannot find trait ToNapiValue error

This commit is contained in:
Chanakya 2022-04-15 16:50:34 +05:30 committed by LongYinan
parent ce308a3b54
commit 09d7fd671a

View file

@ -7,7 +7,7 @@ use std::mem;
use std::os::raw::{c_char, c_void}; use std::os::raw::{c_char, c_void};
use std::ptr; use std::ptr;
#[cfg(all(feature = "tokio_rt", feature = "napi4"))] #[cfg(all(feature = "napi4"))]
use crate::bindgen_runtime::ToNapiValue; use crate::bindgen_runtime::ToNapiValue;
use crate::{ use crate::{
async_work::{self, AsyncWorkPromise}, async_work::{self, AsyncWorkPromise},