Skip to content

Commit

Permalink
Fix clippy lint complaint about assigning result of .clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jul 17, 2024
1 parent 464b88b commit 77acfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/maybenot/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 77acfaa

Please sign in to comment.