Skip to content

Commit d897640

Browse files
committed
clippy: fix new warnings in Rust 1.71
1 parent ab8c2aa commit d897640

File tree

1 file changed

+1
-1
lines changed
  • examples/demo_threading/rust/src/workers

1 file changed

+1
-1
lines changed

Diff for: examples/demo_threading/rust/src/workers/sensors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl SensorsWorker {
106106
// Validate that we would still be below the sensors max count
107107
if sensors_len < SENSOR_MAXIMUM_COUNT || is_occupied {
108108
// Insert or modify the sensor entry to have the power and last seen
109-
let mut sensor = entry.or_default();
109+
let sensor = entry.or_default();
110110
sensor.power = value;
111111
sensor.last_seen = SystemTime::now();
112112
drop(sensors_lock);

0 commit comments

Comments
 (0)