diff options
author | Kirill Bulatov <[email protected]> | 2020-02-12 14:44:52 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-02-12 14:44:52 +0000 |
commit | 848c5762667101c8a017e561da2fa7e39b212929 (patch) | |
tree | 26a6acb0eb0d4099003ed455f89fde4d196a363a /crates/ra_assists/src | |
parent | 1596b31698acd1ca8fe25a1b699bef4a9a6feb1d (diff) |
Introduce AttrKind
Diffstat (limited to 'crates/ra_assists/src')
-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 | } |