aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ssr
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-30 13:12:04 +0100
committerAleksey Kladov <[email protected]>2020-07-30 13:12:04 +0100
commit9697d23cbe7b0ad897139b15f1b1ffe1cab6ad89 (patch)
tree8bb4cfc1f38b2add3704c64e0443b69e38ab272a /crates/ra_ssr
parent35e7966ebeee70ca2c15b5139b5c1918d9ef4086 (diff)
Rename UseItem -> Use
Diffstat (limited to 'crates/ra_ssr')
-rw-r--r--crates/ra_ssr/src/search.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ssr/src/search.rs b/crates/ra_ssr/src/search.rs
index 0f512cb62..213dc494f 100644
--- a/crates/ra_ssr/src/search.rs
+++ b/crates/ra_ssr/src/search.rs
@@ -237,7 +237,7 @@ fn is_search_permitted(node: &SyntaxNode) -> bool {
237 // and the code is `use foo::{baz, bar}`, we'll match `bar`, since it resolves to `foo::bar`. 237 // and the code is `use foo::{baz, bar}`, we'll match `bar`, since it resolves to `foo::bar`.
238 // However we'll then replace just the part we matched `bar`. We probably need to instead remove 238 // However we'll then replace just the part we matched `bar`. We probably need to instead remove
239 // `bar` and insert a new use declaration. 239 // `bar` and insert a new use declaration.
240 node.kind() != SyntaxKind::USE_ITEM 240 node.kind() != SyntaxKind::USE
241} 241}
242 242
243impl UsageCache { 243impl UsageCache {