fix(napi): error should be send sync conditionally (#1487)
This commit is contained in:
parent
ec9349bb3b
commit
853f52ed1f
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ impl<S: AsRef<str>> ToNapiValue for Error<S> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Error {}
|
||||
unsafe impl Sync for Error {}
|
||||
unsafe impl<S> Send for Error<S> where S: Send + AsRef<str> {}
|
||||
unsafe impl<S> Sync for Error<S> where S: Sync + AsRef<str> {}
|
||||
|
||||
impl error::Error for Error {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue