diff options
Diffstat (limited to 'crates/ra_assists')
-rw-r--r-- | crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs b/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs index 4b5e37c11..eac452413 100644 --- a/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs +++ b/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs | |||
@@ -434,8 +434,7 @@ fn best_action_for_target( | |||
434 | let add_after_anchor = anchor | 434 | let add_after_anchor = anchor |
435 | .clone() | 435 | .clone() |
436 | .and_then(ast::Attr::cast) | 436 | .and_then(ast::Attr::cast) |
437 | .as_ref() | 437 | .map(|attr| attr.kind() == ast::AttrKind::Inner) |
438 | .map(ast::Attr::is_inner_attribute) | ||
439 | .unwrap_or(false); | 438 | .unwrap_or(false); |
440 | ImportAction::add_new_use(anchor, add_after_anchor) | 439 | ImportAction::add_new_use(anchor, add_after_anchor) |
441 | } | 440 | } |