mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Made DOMString implement !Send.
This change makes DOMStrings only accessible from the main JS thread.
This commit is contained in:
parent
cf340be758
commit
c8af5b68fa
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue