style: clippy fix
This commit is contained in:
parent
8de30a9287
commit
49a0139f81
2 changed files with 3 additions and 3 deletions
|
@ -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 {}
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
Loading…
Reference in a new issue