diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-04 11:53:35 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-04 15:26:40 +0100 |
commit | b16f9cea092c7591117684491565bcc528fca391 (patch) | |
tree | d7f734234564068cab598927947930cd6b009313 /components/script/dom/htmlformelement.rs | |
parent | 3be587606f7172354632bdbc339e0bf1d97ae2a2 (diff) | |
download | servo-b16f9cea092c7591117684491565bcc528fca391.tar.gz servo-b16f9cea092c7591117684491565bcc528fca391.zip |
Qualify hyper enums.
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r-- | components/script/dom/htmlformelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index e313ac05195..c1c38c2f2c3 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -20,7 +20,7 @@ use dom::htmlelement::HTMLElement; use dom::htmlinputelement::HTMLInputElement; use dom::htmltextareaelement::HTMLTextAreaElement; use dom::node::{Node, NodeHelpers, NodeTypeId, document_from_node, window_from_node}; -use hyper::method::Post; +use hyper::method::Method; use servo_msg::constellation_msg::LoadData; use servo_util::str::DOMString; use script_task::{ScriptChan, ScriptMsg}; @@ -195,7 +195,7 @@ impl<'a> HTMLFormElementHelpers for JSRef<'a, HTMLFormElement> { load_data.url.query = Some(parsed_data); }, ("http", FormMethod::FormPost) | ("https", FormMethod::FormPost) => { - load_data.method = Post; + load_data.method = Method::Post; load_data.data = Some(parsed_data.into_bytes()); }, // https://html.spec.whatwg.org/multipage/forms.html#submit-get-action |