From bbdb3d74042eb1c45e7a54a162ef15ef4e57fc53 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 14 Dec 2024 14:43:18 +0100 Subject: [PATCH] platform: smart_leds: drop a clone we dont need --- src/platform/smart_leds_lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/smart_leds_lib.rs b/src/platform/smart_leds_lib.rs index 41f5eec..6b07801 100644 --- a/src/platform/smart_leds_lib.rs +++ b/src/platform/smart_leds_lib.rs @@ -56,7 +56,7 @@ impl, T: FastWrite> Output for StrideOutput { fn on_event(&mut self, event: &crate::events::Event) { match event { - crate::events::Event::PropertyChange("output.brightness", new_brightness) => self.brightness = new_brightness.clone().into(), + crate::events::Event::PropertyChange("output.brightness", Variant::Byte(new_brightness)) => self.brightness = *new_brightness, _ => () } }