Skip to content

Commit

Permalink
fix(napi): error should be send sync conditionally (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Feb 14, 2023
1 parent ec9349b commit 853f52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/napi/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down

0 comments on commit 853f52e

Please sign in to comment.