Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed May 23, 2024
1 parent 9770b19 commit 1c38469
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ fn submit_event(
}
}

target.typed_chunks = new_target.typed_chunks.clone();
target.displayed_chunks = new_target.displayed_chunks.clone();
target.typed_chunks.clone_from(&new_target.typed_chunks);
target
.displayed_chunks
.clone_from(&new_target.displayed_chunks);
}
}
}
Expand Down Expand Up @@ -357,7 +359,7 @@ fn update_target_text(
match (fail, buf.strip_prefix(ascii)) {
(false, Some(leftover)) => {
matched.push_str(render);
buf = leftover.to_string().clone();
buf.clone_from(&leftover.to_string());
}
(true, _) | (_, None) => {
fail = true;
Expand Down

0 comments on commit 1c38469

Please sign in to comment.