From 09d7fd671acd534aeaf556784952e6dee25a8316 Mon Sep 17 00:00:00 2001 From: Chanakya Date: Fri, 15 Apr 2022 16:50:34 +0530 Subject: [PATCH] fix `cannot find trait ToNapiValue` error --- crates/napi/src/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/napi/src/env.rs b/crates/napi/src/env.rs index 6b957871..b239d1e7 100644 --- a/crates/napi/src/env.rs +++ b/crates/napi/src/env.rs @@ -7,7 +7,7 @@ use std::mem; use std::os::raw::{c_char, c_void}; use std::ptr; -#[cfg(all(feature = "tokio_rt", feature = "napi4"))] +#[cfg(all(feature = "napi4"))] use crate::bindgen_runtime::ToNapiValue; use crate::{ async_work::{self, AsyncWorkPromise},