Made DOMString implement !Send.

This change makes DOMStrings only accessible from the main JS thread.
This commit is contained in:
Alan Jeffrey 2015-11-10 17:06:37 -06:00
parent cf340be758
commit c8af5b68fa

View file

@ -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())