fix(napi): clippy error on 1.58
This commit is contained in:
parent
110f2196a4
commit
41bcd9c50b
3 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,7 @@ pub fn run<T: Task>(
|
|||
})
|
||||
}
|
||||
|
||||
#[allow(clippy::non_send_fields_in_send_ty)]
|
||||
unsafe impl<T: Task> Send for AsyncWork<T> {}
|
||||
|
||||
unsafe impl<T: Task> Sync for AsyncWork<T> {}
|
||||
|
|
|
@ -11,6 +11,7 @@ pub struct Ref<T> {
|
|||
pub(crate) raw_value: sys::napi_value,
|
||||
}
|
||||
|
||||
#[allow(clippy::non_send_fields_in_send_ty)]
|
||||
unsafe impl<T> Send for Ref<T> {}
|
||||
unsafe impl<T> Sync for Ref<T> {}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ pub struct FuturePromise<Data, Resolver: FnOnce(sys::napi_env, Data) -> Result<s
|
|||
_data: PhantomData<Data>,
|
||||
}
|
||||
|
||||
#[allow(clippy::non_send_fields_in_send_ty)]
|
||||
unsafe impl<T, F: FnOnce(sys::napi_env, T) -> Result<sys::napi_value>> Send
|
||||
for FuturePromise<T, F>
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue