We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab8c2aa commit d897640Copy full SHA for d897640
examples/demo_threading/rust/src/workers/sensors.rs
@@ -106,7 +106,7 @@ impl SensorsWorker {
106
// Validate that we would still be below the sensors max count
107
if sensors_len < SENSOR_MAXIMUM_COUNT || is_occupied {
108
// Insert or modify the sensor entry to have the power and last seen
109
- let mut sensor = entry.or_default();
+ let sensor = entry.or_default();
110
sensor.power = value;
111
sensor.last_seen = SystemTime::now();
112
drop(sensors_lock);
0 commit comments