From c737169fe579327bd42bf04134a375ae8d8d0d7b Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 6 Dec 2019 20:18:12 -0800 Subject: Format libcore with rustfmt (including tests and benches) --- src/libcore/tests/array.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/libcore/tests/array.rs') diff --git a/src/libcore/tests/array.rs b/src/libcore/tests/array.rs index 4f3b79c78b6..c2a816f0a7d 100644 --- a/src/libcore/tests/array.rs +++ b/src/libcore/tests/array.rs @@ -41,7 +41,6 @@ fn array_try_from() { } } - #[test] fn iterator_collect() { let arr = [0, 1, 2, 5, 9]; @@ -150,10 +149,7 @@ fn iterator_flat_map() { #[test] fn iterator_debug() { let arr = [0, 1, 2, 5, 9]; - assert_eq!( - format!("{:?}", IntoIter::new(arr)), - "IntoIter([0, 1, 2, 5, 9])", - ); + assert_eq!(format!("{:?}", IntoIter::new(arr)), "IntoIter([0, 1, 2, 5, 9])",); } #[test] @@ -168,7 +164,7 @@ fn iterator_drops() { struct Foo<'a>(&'a Cell); impl Drop for Foo<'_> { - fn drop(&mut self) { + fn drop(&mut self) { self.0.set(self.0.get() + 1); } } -- cgit 1.4.1-3-g733a5