mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fixed the .clone() warnings. (#31819)
This commit is contained in:
parent
95e69fe4ff
commit
9b26dca141
28 changed files with 76 additions and 93 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue