nsstring: Make ns{,C}String Sync/Send.

Bug: 1454021
Reviewed-by: mystor
MozReview-Commit-ID: DeBOgxxTvBR
This commit is contained in:
Bobby Holley 2018-02-14 17:27:32 -08:00 committed by Emilio Cobos Álvarez
parent e4472f7c1f
commit 156ef81878
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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 {