Skip to content

Commit

Permalink
fixup! Add import_rename lint, this adds a field on the Conf struct
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinR528 committed Jun 2, 2021
1 parent 405712b commit 54a1b30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clippy_lints/src/import_rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use rustc_span::Symbol;
declare_clippy_lint! {
/// **What it does:** Checks that any import matching `import_renames` is renamed.
///
/// **Why is this bad?** This is purely about consistency, it is not bad.
/// **Why is this bad?** This is bad for some items because their defined names are
/// too vauge outside of their defining scope.
///
/// **Known problems:** Any import must use the original fully qualified path.
///
Expand Down
1 change: 0 additions & 1 deletion tests/ui-toml/toml_import_rename/conf_import_rename.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(unused_imports, dead_code)]
#![warn(clippy::import_rename)]

extern crate regex;
Expand Down

0 comments on commit 54a1b30

Please sign in to comment.