mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
.
This commit is contained in:
parent
63f509f492
commit
46b4f89c92
28 changed files with 69 additions and 67 deletions
|
@ -228,7 +228,7 @@ impl<'db> ResolutionScope<'db> {
|
|||
None,
|
||||
|_ty, assoc_item| {
|
||||
let item_name = assoc_item.name(self.scope.db)?;
|
||||
if item_name.to_string().as_str() == name.text().as_str() {
|
||||
if item_name.to_string().as_str() == name.text() {
|
||||
Some(hir::PathResolution::AssocItem(assoc_item))
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue