Skip to content

Commit

Permalink
Apply rustfmt suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGillen committed Feb 25, 2021
1 parent 518b076 commit 5712f4d
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions benches/parallel_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,32 @@ fn setup(data: &[Variants]) -> World {

for (i, group) in &data.iter().group_by(|x| index(**x)) {
match i {
0 => world.extend(
group
.map(|x| {
if let Variants::Ab(a, b) = x {
(*a, *b)
} else {
panic!();
}
})
.collect::<Vec<_>>(),
),
_ => world.extend(
group
.map(|x| {
if let Variants::Ac(a, c) = x {
(*a, *c)
} else {
panic!();
}
})
.collect::<Vec<_>>(),
),
0 => {
world.extend(
group
.map(|x| {
if let Variants::Ab(a, b) = x {
(*a, *b)
} else {
panic!();
}
})
.collect::<Vec<_>>(),
)
}
_ => {
world.extend(
group
.map(|x| {
if let Variants::Ac(a, c) = x {
(*a, *c)
} else {
panic!();
}
})
.collect::<Vec<_>>(),
)
}
};
}

Expand Down

0 comments on commit 5712f4d

Please sign in to comment.