Skip to content

Commit

Permalink
remove mut n cast
Browse files Browse the repository at this point in the history
  • Loading branch information
MagisterDallis committed Jan 15, 2025
1 parent dfde528 commit 3b5479d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion corelib/src/iter/traits/iterator.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ pub trait Iterator<T> {
) -> Result<
(), NonZero<usize>,
> {
let mut n = n;
if let Option::Some(nz_n) = n.try_into() {
if let Option::Some(_) = Self::next(ref self) {
return Self::advance_by(ref self, n - 1);
Expand Down

0 comments on commit 3b5479d

Please sign in to comment.