diff options
author | Josh Matthews <josh@joshmatthews.net> | 2015-01-15 13:26:44 -0500 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2015-01-28 10:16:49 +1000 |
commit | 95fc29fa0db21959df99d81cdbb9561226321d2f (patch) | |
tree | a48e171165ec155062ef13c550b2c0f72d127425 /components/script/dom/formdata.rs | |
parent | ff8cbff81016c157373c1675f3eee69dd70ae544 (diff) | |
download | servo-95fc29fa0db21959df99d81cdbb9561226321d2f.tar.gz servo-95fc29fa0db21959df99d81cdbb9561226321d2f.zip |
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
Diffstat (limited to 'components/script/dom/formdata.rs')
-rw-r--r-- | components/script/dom/formdata.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/formdata.rs b/components/script/dom/formdata.rs index 9687bf6d9e5..452832560f9 100644 --- a/components/script/dom/formdata.rs +++ b/components/script/dom/formdata.rs @@ -19,9 +19,9 @@ use servo_util::str::DOMString; use std::borrow::ToOwned; use std::collections::HashMap; -use std::collections::hash_map::{Occupied, Vacant}; +use std::collections::hash_map::Entry::{Occupied, Vacant}; -#[deriving(Clone)] +#[derive(Clone)] #[jstraceable] #[must_root] pub enum FormDatum { @@ -65,7 +65,7 @@ impl<'a> FormDataMethods for JSRef<'a, FormData> { match data.entry(name) { Occupied(entry) => entry.into_mut().push(file), Vacant(entry) => { - entry.set(vec!(file)); + entry.insert(vec!(file)); } } } @@ -74,7 +74,7 @@ impl<'a> FormDataMethods for JSRef<'a, FormData> { let mut data = self.data.borrow_mut(); match data.entry(name) { Occupied(entry) => entry.into_mut().push(FormDatum::StringData(value)), - Vacant (entry) => { entry.set(vec!(FormDatum::StringData(value))); }, + Vacant (entry) => { entry.insert(vec!(FormDatum::StringData(value))); }, } } |