From 3e60a5121330298beb5b1b335e6e0a26ab8aa68d Mon Sep 17 00:00:00 2001 From: Andrew Hayzen Date: Fri, 14 Jul 2023 09:33:29 +0100 Subject: [PATCH] clippy: fix new warnings in Rust 1.71 --- examples/demo_threading/rust/src/workers/sensors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/demo_threading/rust/src/workers/sensors.rs b/examples/demo_threading/rust/src/workers/sensors.rs index 98e473910..61d113db5 100644 --- a/examples/demo_threading/rust/src/workers/sensors.rs +++ b/examples/demo_threading/rust/src/workers/sensors.rs @@ -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);