Skip to content

Commit

Permalink
Fix clone
Browse files Browse the repository at this point in the history
Signed-off-by: Wojciech Kula <[email protected]>
  • Loading branch information
wku12 committed Oct 31, 2024
1 parent c62e630 commit a68c5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/RsLedDriver/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a68c5c1

Please sign in to comment.