Skip to content

Commit

Permalink
nsstring: Make ns{,C}String Sync/Send.
Browse files Browse the repository at this point in the history
Bug: 1454021
Reviewed-by: mystor
MozReview-Commit-ID: DeBOgxxTvBR
  • Loading branch information
bholley authored and emilio committed Apr 14, 2018
1 parent e4472f7 commit 156ef81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions support/gecko/nsstring/src/lib.rs
Expand Up @@ -553,6 +553,9 @@ macro_rules! define_string_types {
hdr: $StringRepr,
}

unsafe impl Send for $String {}
unsafe impl Sync for $String {}

impl $String {
pub fn new() -> $String {
$String {
Expand Down

0 comments on commit 156ef81

Please sign in to comment.