Skip to content

Commit

Permalink
iter().collect() => .clone() for Vec
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Aug 8, 2023
1 parent 960d5b0 commit 9f83252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glyphs2fontir/src/toir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn to_ir_path(glyph_name: GlyphName, src_path: &Path) -> Result<BezPath, WorkErr
return Ok(path_builder.build()?);
}

let mut nodes: Vec<_> = src_path.nodes.iter().collect();
let mut nodes: Vec<_> = src_path.nodes.clone();

// First is a delicate butterfly
if !src_path.closed {
Expand Down

0 comments on commit 9f83252

Please sign in to comment.