Allow unused_imports, and unused_import_braces on use
This commit is contained in:
parent
341ae30a85
commit
97a3ac5b86
3 changed files with 18 additions and 0 deletions
|
|
@ -564,6 +564,8 @@ impl<'tcx> LateLintPass<'tcx> for Attributes {
|
|||
|| is_word(lint, sym::deprecated)
|
||||
|| is_word(lint, sym!(unreachable_pub))
|
||||
|| is_word(lint, sym!(unused))
|
||||
|| is_word(lint, sym!(unused_import_braces))
|
||||
|| is_word(lint, sym!(unused_imports))
|
||||
|| extract_clippy_lint(lint).map_or(false, |s| {
|
||||
matches!(
|
||||
s.as_str(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue