Skip to content

Commit

Permalink
Fix clippy::identity_op
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Mar 24, 2024
1 parent 9a9fba4 commit f8d0f47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/iter/fold_chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ mod test {
#[test]
fn check_fold_chunks_uneven() {
let cases: Vec<(Vec<u32>, usize, Vec<u32>)> = vec![
((0..5).collect(), 3, vec![0 + 1 + 2, 3 + 4]),
((0..5).collect(), 3, vec![1 + 2, 3 + 4]),
(vec![1], 5, vec![1]),
((0..4).collect(), 3, vec![0 + 1 + 2, 3]),
((0..4).collect(), 3, vec![1 + 2, 3]),
];

for (i, (v, n, expected)) in cases.into_iter().enumerate() {
Expand Down
4 changes: 2 additions & 2 deletions src/iter/fold_chunks_with.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ mod test {
#[test]
fn check_fold_chunks_uneven() {
let cases: Vec<(Vec<u32>, usize, Vec<u32>)> = vec![
((0..5).collect(), 3, vec![0 + 1 + 2, 3 + 4]),
((0..5).collect(), 3, vec![1 + 2, 3 + 4]),
(vec![1], 5, vec![1]),
((0..4).collect(), 3, vec![0 + 1 + 2, 3]),
((0..4).collect(), 3, vec![1 + 2, 3]),
];

for (i, (v, n, expected)) in cases.into_iter().enumerate() {
Expand Down

0 comments on commit f8d0f47

Please sign in to comment.