style: clippy fix

This commit is contained in:
LongYinan 2021-12-03 16:29:57 +08:00
parent 8de30a9287
commit 49a0139f81
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ use napi::{CallContext, JsExternal, JsObject, JsString};
#[derive(Clone)] #[derive(Clone)]
pub struct QueryEngine { pub struct QueryEngine {
datamodel: String, pub datamodel: String,
} }
unsafe impl Sync for QueryEngine {} unsafe impl Sync for QueryEngine {}

View file

@ -5,8 +5,8 @@ use napi::{
use napi_derive::js_function; use napi_derive::js_function;
#[derive(Clone)] #[derive(Clone)]
struct A { pub struct A {
cb: ThreadsafeFunction<String>, pub cb: ThreadsafeFunction<String>,
} }
#[js_function(1)] #[js_function(1)]