From 77acfaaedc08a656c1cce983b066210e5782f4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Wed, 17 Jul 2024 17:48:30 +0200 Subject: [PATCH] Fix clippy lint complaint about assigning result of .clone() --- crates/maybenot/src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/maybenot/src/state.rs b/crates/maybenot/src/state.rs index d263221..33cbd61 100644 --- a/crates/maybenot/src/state.rs +++ b/crates/maybenot/src/state.rs @@ -160,7 +160,7 @@ impl State { let mut map = enum_map! {_ => vec![]}; for (event, vector) in self.transitions.iter().enumerate() { if let Some(vector) = vector { - map[Event::from_usize(event)] = vector.clone(); + map[Event::from_usize(event)].clone_from(vector); } }