aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbindingpairiterable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/testbindingpairiterable.rs')
-rw-r--r--components/script/dom/testbindingpairiterable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/testbindingpairiterable.rs b/components/script/dom/testbindingpairiterable.rs
index 15ff3c2c752..6496f3c9a07 100644
--- a/components/script/dom/testbindingpairiterable.rs
+++ b/components/script/dom/testbindingpairiterable.rs
@@ -29,13 +29,13 @@ impl Iterable for TestBindingPairIterable {
self.map.borrow().len() as u32
}
fn get_value_at_index(&self, index: u32) -> u32 {
- self.map
+ *self
+ .map
.borrow()
.iter()
.nth(index as usize)
.map(|a| &a.1)
.unwrap()
- .clone()
}
fn get_key_at_index(&self, index: u32) -> DOMString {
self.map