mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
fix(clippy): Clippy suggestions in components/script/dom/* (#33072)
Signed-off-by: Jose T. Monagas <josetmonagas@proton.me> Co-authored-by: Jose T. Monagas <josetmonagas@proton.me>
This commit is contained in:
parent
386a067c4b
commit
a34920b605
6 changed files with 16 additions and 15 deletions
|
@ -29,19 +29,12 @@ impl Iterable for TestBindingPairIterable {
|
|||
self.map.borrow().len() as u32
|
||||
}
|
||||
fn get_value_at_index(&self, index: u32) -> u32 {
|
||||
*self
|
||||
.map
|
||||
.borrow()
|
||||
.iter()
|
||||
.nth(index as usize)
|
||||
.map(|a| &a.1)
|
||||
.unwrap()
|
||||
*self.map.borrow().get(index as usize).map(|a| &a.1).unwrap()
|
||||
}
|
||||
fn get_key_at_index(&self, index: u32) -> DOMString {
|
||||
self.map
|
||||
.borrow()
|
||||
.iter()
|
||||
.nth(index as usize)
|
||||
.get(index as usize)
|
||||
.map(|a| &a.0)
|
||||
.unwrap()
|
||||
.clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue