Skip to content

Commit

Permalink
Fix clippy::useless_vec
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Mar 24, 2024
1 parent 4609ae3 commit 9a9fba4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/producer_split_at.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,17 @@ fn array() {

#[test]
fn empty() {
let v = vec![42];
check(&v[..0], rayon::iter::empty);
check(&[], rayon::iter::empty::<i32>);
}

#[test]
fn once() {
let v = vec![42];
check(&v, || rayon::iter::once(42));
check(&[42], || rayon::iter::once(42));
}

#[test]
fn option() {
let v = vec![42];
check(&v, || Some(42));
check(&[42], || Some(42));
}

#[test]
Expand Down

0 comments on commit 9a9fba4

Please sign in to comment.