Skip to content

Commit

Permalink
refactor(window): remove unnessecary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Mar 4, 2024
1 parent c1c6413 commit c7c38f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl TeXMatchWindow {
for stroke in window.imp().strokes.borrow().iter().chain(std::iter::once(&curr_stroke)) {
tracing::trace!("Drawing: {:?}", stroke);
let mut looped = false;
for (p, q) in stroke.points().copied().tuple_windows() {
for (p, q) in stroke.points().tuple_windows() {
ctx.move_to(p.x, p.y);
ctx.line_to(q.x, q.y);
looped = true;
Expand Down

0 comments on commit c7c38f6

Please sign in to comment.