From a68c5c11ff83169d9e356302b15ed8da662010cd Mon Sep 17 00:00:00 2001 From: Wojciech Kula Date: Thu, 31 Oct 2024 11:34:46 +0100 Subject: [PATCH] Fix clone Signed-off-by: Wojciech Kula --- modules/RsLedDriver/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/RsLedDriver/src/main.rs b/modules/RsLedDriver/src/main.rs index e081d0b74..b88181da6 100644 --- a/modules/RsLedDriver/src/main.rs +++ b/modules/RsLedDriver/src/main.rs @@ -89,7 +89,7 @@ impl EvseManagerClientSubscriber for LedDriver { fn on_session_event(&self, context: &Context, value: SessionEvent) { let index = context.index; - let led_driver = context.publisher.led_driver_slots[index].clone(); + let led_driver = &context.publisher.led_driver_slots[index]; let _ = match get_led_state(value.event.clone()) { Some(led_state) => led_driver