diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-09-02 07:57:55 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-09-02 09:22:17 +0200 |
commit | 40b4348824f96a0f37b39f38a024b6061b36b0a7 (patch) | |
tree | 0c7b91cac0e789c3d53bf11fcda475037f1de0e5 /components/script/dom/element.rs | |
parent | ba2cb77c26006dc378553d757e88de8ab86c4d5b (diff) | |
download | servo-40b4348824f96a0f37b39f38a024b6061b36b0a7.tar.gz servo-40b4348824f96a0f37b39f38a024b6061b36b0a7.zip |
Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01)
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 4e03dff4086..d8d429cdeab 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -637,7 +637,7 @@ impl Element { .iter() .position(|decl| decl.name() == property); if let Some(index) = index { - Arc::make_unique(&mut declarations.normal).remove(index); + Arc::make_mut(&mut declarations.normal).remove(index); return; } @@ -645,7 +645,7 @@ impl Element { .iter() .position(|decl| decl.name() == property); if let Some(index) = index { - Arc::make_unique(&mut declarations.important).remove(index); + Arc::make_mut(&mut declarations.important).remove(index); return; } } @@ -662,7 +662,7 @@ impl Element { // Usually, the reference count will be 1 here. But transitions could make it greater // than that. - let existing_declarations = Arc::make_unique(existing_declarations); + let existing_declarations = Arc::make_mut(existing_declarations); for declaration in &mut *existing_declarations { if declaration.name() == property_decl.name() { *declaration = property_decl; @@ -696,8 +696,8 @@ impl Element { // Usually, the reference counts of `from` and `to` will be 1 here. But transitions // could make them greater than that. - let from = Arc::make_unique(from); - let to = Arc::make_unique(to); + let from = Arc::make_mut(from); + let to = Arc::make_mut(to); let mut new_from = Vec::new(); for declaration in from.drain(..) { if properties.contains(&declaration.name()) { |