Ungroup imports

This commit is contained in:
David Tolnay
2023-07-25 21:06:57 -07:00
parent 11677ad926
commit dd9913675d
19 changed files with 44 additions and 68 deletions
@@ -1,5 +1,4 @@
use serde_derive::Serialize;
use std::collections::HashMap;
#[derive(Serialize)]
@@ -1,5 +1,5 @@
error: #[serde(flatten)] cannot be used on newtype structs
--> tests/ui/conflict/flatten-newtype-struct.rs:6:12
--> tests/ui/conflict/flatten-newtype-struct.rs:5:12
|
6 | struct Foo(#[serde(flatten)] HashMap<String, String>);
5 | struct Foo(#[serde(flatten)] HashMap<String, String>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,4 @@
use serde_derive::Serialize;
use std::collections::HashMap;
#[derive(Serialize)]
@@ -1,5 +1,5 @@
error: #[serde(flatten)] cannot be used on tuple structs
--> tests/ui/conflict/flatten-tuple-struct.rs:6:17
--> tests/ui/conflict/flatten-tuple-struct.rs:5:17
|
6 | struct Foo(u32, #[serde(flatten)] HashMap<String, String>);
5 | struct Foo(u32, #[serde(flatten)] HashMap<String, String>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^