From 5712f4df6725f9ca06c935517c58653c6f3ad6a4 Mon Sep 17 00:00:00 2001 From: Tom Gillen Date: Thu, 25 Feb 2021 07:09:19 +0000 Subject: [PATCH] Apply rustfmt suggestion --- benches/parallel_query.rs | 48 +++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/benches/parallel_query.rs b/benches/parallel_query.rs index c8e6a374..f654a3af 100644 --- a/benches/parallel_query.rs +++ b/benches/parallel_query.rs @@ -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::>(), - ), - _ => world.extend( - group - .map(|x| { - if let Variants::Ac(a, c) = x { - (*a, *c) - } else { - panic!(); - } - }) - .collect::>(), - ), + 0 => { + world.extend( + group + .map(|x| { + if let Variants::Ab(a, b) = x { + (*a, *b) + } else { + panic!(); + } + }) + .collect::>(), + ) + } + _ => { + world.extend( + group + .map(|x| { + if let Variants::Ac(a, c) = x { + (*a, *c) + } else { + panic!(); + } + }) + .collect::>(), + ) + } }; }