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 16, 2023
1 parent e9807a3 commit 3e60a51
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 3e60a51

Please sign in to comment.