diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-11-22 16:07:55 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-11-23 22:03:27 +0530 |
commit | 534919327d815c1a369975546c911d38bb4b5004 (patch) | |
tree | 817036147bac23b77d6bda6191649427024cce8d /components/script/dom/htmlserializer.rs | |
parent | e6e73b8da70a6acaeabc1abf13071d044996f103 (diff) | |
download | servo-534919327d815c1a369975546c911d38bb4b5004.tar.gz servo-534919327d815c1a369975546c911d38bb4b5004.zip |
Use atom! in place of Atom::from_slice where necessary
Diffstat (limited to 'components/script/dom/htmlserializer.rs')
-rw-r--r-- | components/script/dom/htmlserializer.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/htmlserializer.rs b/components/script/dom/htmlserializer.rs index 38a56feb23e..8a04fa717a1 100644 --- a/components/script/dom/htmlserializer.rs +++ b/components/script/dom/htmlserializer.rs @@ -18,8 +18,6 @@ use dom::node::{TextNodeTypeId, NodeHelpers}; use dom::processinginstruction::ProcessingInstruction; use dom::text::Text; -use string_cache::Atom; - #[allow(unrooted_must_root)] pub fn serialize(iterator: &mut NodeIterator) -> String { let mut html = String::new(); @@ -141,7 +139,7 @@ fn serialize_attr(attr: JSRef<Attr>, html: &mut String) { html.push_str("xml:"); html.push_str(attr.local_name().as_slice()); } else if *attr.namespace() == ns!(XMLNS) && - *attr.local_name() == Atom::from_slice("xmlns") { + *attr.local_name() == atom!("xmlns") { html.push_str("xmlns"); } else if *attr.namespace() == ns!(XMLNS) { html.push_str("xmlns:"); |