diff options
| author | MarcusGrass <marcus.grass@protonmail.com> | 2024-02-22 21:53:04 +0100 |
|---|---|---|
| committer | MarcusGrass <marcus.grass@protonmail.com> | 2024-02-22 21:53:04 +0100 |
| commit | 97a3ac5b86c21cc7e478da1c90187d006ea35eb0 (patch) | |
| tree | 96496cb1f9424da1d291b62b2b890c78d0688017 /tests/ui | |
| parent | 341ae30a854a00c3876ac8b53b842eae31f0613e (diff) | |
| download | rust-97a3ac5b86c21cc7e478da1c90187d006ea35eb0.tar.gz rust-97a3ac5b86c21cc7e478da1c90187d006ea35eb0.zip | |
Allow unused_imports, and unused_import_braces on `use`
Diffstat (limited to 'tests/ui')
| -rw-r--r-- | tests/ui/useless_attribute.fixed | 8 | ||||
| -rw-r--r-- | tests/ui/useless_attribute.rs | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/useless_attribute.fixed b/tests/ui/useless_attribute.fixed index c7d611f36cf..7f4874b1f20 100644 --- a/tests/ui/useless_attribute.fixed +++ b/tests/ui/useless_attribute.fixed @@ -80,6 +80,14 @@ pub mod split { #[allow(clippy::single_component_path_imports)] use regex; +mod module { + pub(crate) struct Struct; +} + +#[rustfmt::skip] +#[allow(unused_import_braces, unused_imports)] +use module::{Struct}; + fn main() { test_indented_attr(); } diff --git a/tests/ui/useless_attribute.rs b/tests/ui/useless_attribute.rs index 00cfa8f5d54..d0f22db727a 100644 --- a/tests/ui/useless_attribute.rs +++ b/tests/ui/useless_attribute.rs @@ -80,6 +80,14 @@ pub mod split { #[allow(clippy::single_component_path_imports)] use regex; +mod module { + pub(crate) struct Struct; +} + +#[rustfmt::skip] +#[allow(unused_import_braces, unused_imports)] +use module::{Struct}; + fn main() { test_indented_attr(); } |
