Skip to content

Commit

Permalink
clippy: fix new warnings in Rust 1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
ahayzen-kdab authored and Be-ing committed Jul 14, 2023
1 parent 47999bf commit 7f54f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/demo_threading/rust/src/workers/sensors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl SensorsWorker {
// Validate that we would still be below the sensors max count
if sensors_len < SENSOR_MAXIMUM_COUNT || is_occupied {
// Insert or modify the sensor entry to have the power and last seen
let mut sensor = entry.or_default();
let sensor = entry.or_default();
sensor.power = value;
sensor.last_seen = SystemTime::now();
drop(sensors_lock);
Expand Down

0 comments on commit 7f54f1a

Please sign in to comment.