platform: smart_leds: drop a clone we dont need

This commit is contained in:
Victoria Fischer 2024-12-14 14:43:18 +01:00
parent a237bb7dc8
commit bbdb3d7404

View File

@ -56,7 +56,7 @@ impl<P: Pixbuf<Pixel=T::Color>, T: FastWrite> Output for StrideOutput<P, T> {
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,
_ => ()
}
}