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)]
pub struct QueryEngine {
datamodel: String,
pub datamodel: String,
}
unsafe impl Sync for QueryEngine {}

View file

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