diff --git a/bench/src/query.rs b/bench/src/query.rs index 0ccf056b..e8e14294 100644 --- a/bench/src/query.rs +++ b/bench/src/query.rs @@ -2,7 +2,7 @@ use napi::{CallContext, JsExternal, JsObject, JsString}; #[derive(Clone)] pub struct QueryEngine { - datamodel: String, + pub datamodel: String, } unsafe impl Sync for QueryEngine {} diff --git a/examples/napi-compat-mode/src/napi4/tsfn_dua_instance.rs b/examples/napi-compat-mode/src/napi4/tsfn_dua_instance.rs index 39e0a236..12ca640d 100644 --- a/examples/napi-compat-mode/src/napi4/tsfn_dua_instance.rs +++ b/examples/napi-compat-mode/src/napi4/tsfn_dua_instance.rs @@ -5,8 +5,8 @@ use napi::{ use napi_derive::js_function; #[derive(Clone)] -struct A { - cb: ThreadsafeFunction, +pub struct A { + pub cb: ThreadsafeFunction, } #[js_function(1)]