about summary refs log tree commit diff
path: root/compiler/rustc_index/src/vec/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_index/src/vec/tests.rs')
-rw-r--r--compiler/rustc_index/src/vec/tests.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/compiler/rustc_index/src/vec/tests.rs b/compiler/rustc_index/src/vec/tests.rs
index 9cee2f2f5b2..381d79c24fc 100644
--- a/compiler/rustc_index/src/vec/tests.rs
+++ b/compiler/rustc_index/src/vec/tests.rs
@@ -29,21 +29,19 @@ fn index_size_is_optimized() {
 #[test]
 fn range_iterator_iterates_forwards() {
     let range = MyIdx::from_u32(1)..MyIdx::from_u32(4);
-    assert_eq!(range.collect::<Vec<_>>(), [
-        MyIdx::from_u32(1),
-        MyIdx::from_u32(2),
-        MyIdx::from_u32(3)
-    ]);
+    assert_eq!(
+        range.collect::<Vec<_>>(),
+        [MyIdx::from_u32(1), MyIdx::from_u32(2), MyIdx::from_u32(3)]
+    );
 }
 
 #[test]
 fn range_iterator_iterates_backwards() {
     let range = MyIdx::from_u32(1)..MyIdx::from_u32(4);
-    assert_eq!(range.rev().collect::<Vec<_>>(), [
-        MyIdx::from_u32(3),
-        MyIdx::from_u32(2),
-        MyIdx::from_u32(1)
-    ]);
+    assert_eq!(
+        range.rev().collect::<Vec<_>>(),
+        [MyIdx::from_u32(3), MyIdx::from_u32(2), MyIdx::from_u32(1)]
+    );
 }
 
 #[test]