use 'into_values'
This commit is contained in:
parent
2bd326750d
commit
51d270bc91
1 changed files with 1 additions and 2 deletions
|
|
@ -44,8 +44,7 @@ pub async fn handle_wireless_device(device: WirelessDevice<'_>) -> zbus::Result<
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let aps = aps
|
let aps = aps
|
||||||
.into_iter()
|
.into_values()
|
||||||
.map(|(_, x)| x)
|
|
||||||
.sorted_by(|a, b| b.strength.cmp(&a.strength))
|
.sorted_by(|a, b| b.strength.cmp(&a.strength))
|
||||||
.collect();
|
.collect();
|
||||||
Ok(aps)
|
Ok(aps)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue