about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJacherr <jwc2002@outlook.com>2023-11-08 21:17:40 +0000
committerJacherr <jwc2002@outlook.com>2023-11-08 21:17:40 +0000
commit483b109e6e7f741f0827fde46c9263636498b12a (patch)
tree193734e322c1b7e7d3241c0f5336e369cd12e537 /tests
parentb6d56c47f9d62a456fc2affaad71f9120c1a8059 (diff)
downloadrust-483b109e6e7f741f0827fde46c9263636498b12a.tar.gz
rust-483b109e6e7f741f0827fde46c9263636498b12a.zip
cargo dev fmt
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/vec_box_sized.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/vec_box_sized.rs b/tests/ui/vec_box_sized.rs
index af471f1eb8d..e46f5bf2126 100644
--- a/tests/ui/vec_box_sized.rs
+++ b/tests/ui/vec_box_sized.rs
@@ -3,7 +3,7 @@
 #![allow(dead_code)]
 #![feature(allocator_api)]
 
-use std::alloc::{Layout, AllocError, Allocator};
+use std::alloc::{AllocError, Allocator, Layout};
 use std::ptr::NonNull;
 
 struct SizedStruct(i32);
@@ -22,7 +22,7 @@ unsafe impl Allocator for DummyAllocator {
 
 /// The following should trigger the lint
 mod should_trigger {
-    use super::{SizedStruct, DummyAllocator};
+    use super::{DummyAllocator, SizedStruct};
     const C: Vec<Box<i32>> = Vec::new();
     static S: Vec<Box<i32>> = Vec::new();
 
@@ -46,7 +46,7 @@ mod should_trigger {
 
 /// The following should not trigger the lint
 mod should_not_trigger {
-    use super::{BigStruct, UnsizedStruct, DummyAllocator};
+    use super::{BigStruct, DummyAllocator, UnsizedStruct};
 
     struct C(Vec<Box<UnsizedStruct>>);
     struct D(Vec<Box<BigStruct>>);