Skip to content

Commit f197459

Browse files
committed
Remove double unused_imports check
1 parent 97a3ac5 commit f197459

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

clippy_lints/src/attrs.rs

-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ impl<'tcx> LateLintPass<'tcx> for Attributes {
565565
|| is_word(lint, sym!(unreachable_pub))
566566
|| is_word(lint, sym!(unused))
567567
|| is_word(lint, sym!(unused_import_braces))
568-
|| is_word(lint, sym!(unused_imports))
569568
|| extract_clippy_lint(lint).map_or(false, |s| {
570569
matches!(
571570
s.as_str(),

tests/ui/useless_attribute.fixed

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ mod module {
8585
}
8686

8787
#[rustfmt::skip]
88-
#[allow(unused_import_braces, unused_imports)]
88+
#[allow(unused_import_braces)]
8989
use module::{Struct};
9090

9191
fn main() {

tests/ui/useless_attribute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ mod module {
8585
}
8686

8787
#[rustfmt::skip]
88-
#[allow(unused_import_braces, unused_imports)]
88+
#[allow(unused_import_braces)]
8989
use module::{Struct};
9090

9191
fn main() {

0 commit comments

Comments
 (0)