diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2015-11-10 17:06:37 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2015-11-12 17:52:59 -0600 |
commit | c8af5b68faa80967284fbc457643b68eece9cfa2 (patch) | |
tree | 51b51c99ee32c35cc59ae68d77fbd94641daa87c /components/util/str.rs | |
parent | cf340be758ac3fb4b3e99dd6195d0656f6d1c6b7 (diff) | |
download | servo-c8af5b68faa80967284fbc457643b68eece9cfa2.tar.gz servo-c8af5b68faa80967284fbc457643b68eece9cfa2.zip |
Made DOMString implement !Send.
This change makes DOMStrings only accessible from the main JS thread.
Diffstat (limited to 'components/util/str.rs')
-rw-r--r-- | components/util/str.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/util/str.rs b/components/util/str.rs index 7606cde47a4..180d834a05e 100644 --- a/components/util/str.rs +++ b/components/util/str.rs @@ -26,6 +26,8 @@ use std::str::{CharIndices, FromStr, Split, from_utf8}; #[derive(Clone, PartialOrd, Ord, PartialEq, Eq, Deserialize, Serialize, Hash, Debug)] pub struct DOMString(pub String); +impl !Send for DOMString {} + impl DOMString { pub fn new() -> DOMString { DOMString(String::new()) |