diff options
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index a3c53071134..b7af752fdfc 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -19,7 +19,6 @@ use dom::node::{Node, document_from_node, window_from_node}; use dom::virtualmethods::VirtualMethods; use msg::constellation_msg::ConstellationChan; use msg::constellation_msg::Msg as ConstellationMsg; -use std::borrow::ToOwned; use std::rc::Rc; use string_cache::Atom; use time; @@ -179,7 +178,7 @@ impl VirtualMethods for HTMLBodyElement { let evtarget = window.upcast::<EventTarget>(); // forwarded event evtarget.set_event_handler_uncompiled(cx, url, reflector, &name[2..], - DOMString((**attr.value()).to_owned())); + DOMString::from((**attr.value()).to_owned())); false } _ => true, // HTMLElement::attribute_mutated will take care of this. |