Skip to content

Commit

Permalink
Remove unnecessary call to take
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinas committed Dec 11, 2024
1 parent 7b6c6c4 commit 9cb2c09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/fields/large_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ where
debug_assert_eq!(x.len(), 8);
let (x0, x) = x.split_at(1);
x.iter()
.take(7)
.zip(Self::ALPHA)
.fold(x0[0], |sum, (xi, alphai)| sum + (alphai * xi))
}
Expand Down
2 changes: 0 additions & 2 deletions src/fields/x86_simd_large_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ impl ByteCombine for GF128 {
debug_assert_eq!(x.len(), 8);
let (x0, x) = x.split_at(1);
x.iter()
.take(7)
.zip(Self::ALPHA)
.fold(x0[0], |sum, (xi, alphai)| sum + (alphai * xi))
}
Expand Down Expand Up @@ -986,7 +985,6 @@ impl ByteCombine for GF256 {
debug_assert_eq!(x.len(), 8);
let (x0, x) = x.split_at(1);
x.iter()
.take(7)
.zip(Self::ALPHA)
.fold(x0[0], |sum, (xi, alphai)| sum + (alphai * xi))
}
Expand Down

0 comments on commit 9cb2c09

Please sign in to comment.