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
|
||||
.into_iter()
|
||||
.map(|(_, x)| x)
|
||||
.into_values()
|
||||
.sorted_by(|a, b| b.strength.cmp(&a.strength))
|
||||
.collect();
|
||||
Ok(aps)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue