mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Rustup
This commit is contained in:
parent
cb7af65e28
commit
4edd140e57
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,7 @@ impl EarlyLintPass for UnsafeNameRemoval {
|
|||
|
||||
fn check_use_tree(use_tree: &UseTree, cx: &EarlyContext, span: &Span) {
|
||||
match use_tree.kind {
|
||||
UseTreeKind::Simple(new_name) => {
|
||||
UseTreeKind::Simple(Some(new_name)) => {
|
||||
let old_name = use_tree
|
||||
.prefix
|
||||
.segments
|
||||
|
@ -52,6 +52,7 @@ fn check_use_tree(use_tree: &UseTree, cx: &EarlyContext, span: &Span) {
|
|||
.identifier;
|
||||
unsafe_to_safe_check(old_name, new_name, cx, span);
|
||||
}
|
||||
UseTreeKind::Simple(None) |
|
||||
UseTreeKind::Glob => {},
|
||||
UseTreeKind::Nested(ref nested_use_tree) => {
|
||||
for &(ref use_tree, _) in nested_use_tree {
|
||||
|
|
Loading…
Reference in a new issue