mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
This commit is contained in:
parent
ff8cbff810
commit
95fc29fa0d
255 changed files with 3550 additions and 3362 deletions
|
@ -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))); },
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue