Skip to content

Commit

Permalink
Fix clippy complains
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviog committed Dec 24, 2023
1 parent af6bcae commit 34a9a54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io/off.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ fn read_off_faces(
num_elements: usize,
parser_context: &mut TextParserContext,
) -> Result<Array2<usize>, LoadError> {
let mut faces = Vec::<usize>::new();
faces.reserve(num_elements * 4);
let mut faces = Vec::<usize>::with_capacity(num_elements * 4);

for _ in 0..num_elements {
let line = parser_context.read_line()?;
Expand Down

0 comments on commit 34a9a54

Please sign in to comment.