Skip to content

Commit 1cae37d

Browse files
authored
Remove unnecessary re-allocation in BatchInvert (#1863)
I didn't look deeper into it, but I assume this was just a historic leftover.
1 parent e93dda2 commit 1cae37d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

elliptic-curve/src/ops.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ where
7171
field_elements_inverses.as_mut(),
7272
);
7373

74-
CtOption::new(
75-
field_elements_inverses.into_iter().collect(),
76-
inversion_succeeded,
77-
)
74+
CtOption::new(field_elements_inverses, inversion_succeeded)
7875
}
7976
}
8077

0 commit comments

Comments
 (0)