From bf6085b96ea808c1ccd2fd9be665b36c29215a6d Mon Sep 17 00:00:00 2001 From: Mingun Date: Sun, 10 Jul 2022 15:10:58 +0500 Subject: [PATCH] cargo fmt for `compare` crate --- compare/benches/bench.rs | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/compare/benches/bench.rs b/compare/benches/bench.rs index 4dfb5a4f..0a14fb40 100644 --- a/compare/benches/bench.rs +++ b/compare/benches/bench.rs @@ -25,7 +25,10 @@ fn low_level_comparison(c: &mut Criterion) { } buf.clear(); } - assert_eq!(count, 1550, "Overall tag count in ./tests/documents/sample_rss.xml"); + assert_eq!( + count, 1550, + "Overall tag count in ./tests/documents/sample_rss.xml" + ); }) }); @@ -49,7 +52,10 @@ fn low_level_comparison(c: &mut Criterion) { } input = &input[consumed..]; } - assert_eq!(count, 1550, "Overall tag count in ./tests/documents/sample_rss.xml"); + assert_eq!( + count, 1550, + "Overall tag count in ./tests/documents/sample_rss.xml" + ); }) }); @@ -68,7 +74,10 @@ fn low_level_comparison(c: &mut Criterion) { _ => (), } } - assert_eq!(count, 1550, "Overall tag count in ./tests/documents/sample_rss.xml"); + assert_eq!( + count, 1550, + "Overall tag count in ./tests/documents/sample_rss.xml" + ); }) }); @@ -83,7 +92,10 @@ fn low_level_comparison(c: &mut Criterion) { _ => (), } } - assert_eq!(count, 1550, "Overall tag count in ./tests/documents/sample_rss.xml"); + assert_eq!( + count, 1550, + "Overall tag count in ./tests/documents/sample_rss.xml" + ); }) }); @@ -101,7 +113,10 @@ fn low_level_comparison(c: &mut Criterion) { _ => (), } } - assert_eq!(count, 1550, "Overall tag count in ./tests/documents/sample_rss.xml"); + assert_eq!( + count, 1550, + "Overall tag count in ./tests/documents/sample_rss.xml" + ); }) }); @@ -166,7 +181,10 @@ fn low_level_comparison(c: &mut Criterion) { count += 1; } } - assert_eq!(count, 1550, "Overall tag count in ./tests/documents/sample_rss.xml"); + assert_eq!( + count, 1550, + "Overall tag count in ./tests/documents/sample_rss.xml" + ); }) }); group.finish();