From 49a0139f819badd13bc2869259d65fc878f0c472 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 3 Dec 2021 16:29:57 +0800 Subject: [PATCH] style: clippy fix --- bench/src/query.rs | 2 +- examples/napi-compat-mode/src/napi4/tsfn_dua_instance.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)]