diff options
author | Anthony Urena <anthgur@users.noreply.github.com> | 2015-10-06 05:43:52 -0400 |
---|---|---|
committer | Anthony Urena <anthgur@users.noreply.github.com> | 2015-10-06 05:43:52 -0400 |
commit | ba86131cd5a7be41ca3adf5805c096d2756c9276 (patch) | |
tree | b6cd23560f1027f8d1b333ba0ab07c22b8005731 /components/script/dom/htmlelement.rs | |
parent | 94816bb3b42e50127db56e64086843b14614ca88 (diff) | |
download | servo-ba86131cd5a7be41ca3adf5805c096d2756c9276.tar.gz servo-ba86131cd5a7be41ca3adf5805c096d2756c9276.zip |
Refactor Error enum usage to consistently be qualified
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index ba44495e508..395b1b83c3b 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -12,8 +12,7 @@ use dom::bindings::codegen::Bindings::WindowBinding::WindowMethods; use dom::bindings::codegen::InheritTypes::{ElementCast, HTMLFrameSetElementDerived}; use dom::bindings::codegen::InheritTypes::{EventTargetCast, HTMLInputElementCast, NodeCast}; use dom::bindings::codegen::InheritTypes::{HTMLBodyElementDerived, HTMLElementDerived, HTMLHtmlElementDerived}; -use dom::bindings::error::Error::Syntax; -use dom::bindings::error::ErrorResult; +use dom::bindings::error::{Error, ErrorResult}; use dom::bindings::js::{JS, MutNullableHeap, Root}; use dom::bindings::utils::Reflectable; use dom::cssstyledeclaration::{CSSModificationAccess, CSSStyleDeclaration}; @@ -289,7 +288,7 @@ impl HTMLElement { if name.chars() .skip_while(|&ch| ch != '\u{2d}') .nth(1).map_or(false, |ch| ch >= 'a' && ch <= 'z') { - return Err(Syntax); + return Err(Error::Syntax); } let element = ElementCast::from_ref(self); element.set_custom_attribute(to_snake_case(name), value) |