Skip to content

Commit 085c724

Browse files
committed
satisfy mr clippy
1 parent 803b92a commit 085c724

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

connect/src/spirc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ impl SpircTask {
12761276
};
12771277

12781278
let position_delta =
1279-
(state.position_as_of_timestamp as i64 - expected_position as i64).abs();
1279+
(state.position_as_of_timestamp - expected_position).abs();
12801280
if position_delta > 5000 {
12811281
PlayerUpdateReason::SeekChanged
12821282
} else {
@@ -1377,13 +1377,13 @@ impl SpircTask {
13771377
// Sync device state to cluster_state_sender (after emitting events)
13781378
let devices: HashMap<String, DeviceInfo> = cluster
13791379
.device
1380-
.iter()
1381-
.map(|(_, device)| {
1380+
.values()
1381+
.map(|device| {
13821382
let info = DeviceInfo {
13831383
device_id: device.device_id.clone(),
13841384
device_alias: device.name.clone(),
13851385
device_type: format!("{:?}", device.device_type),
1386-
volume: device.volume as u32,
1386+
volume: device.volume,
13871387
is_active: device.device_id == cluster.active_device_id,
13881388
};
13891389
(info.device_id.clone(), info)

0 commit comments

Comments
 (0)