mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Fix some more basic clippy lints
This commit is contained in:
parent
9485d6efba
commit
dfdf6fd9f8
9 changed files with 22 additions and 29 deletions
|
@ -153,7 +153,7 @@ impl NameClass {
|
|||
path_segment.name_ref()
|
||||
},
|
||||
PathSegmentKind::Name(name_ref) => Some(name_ref),
|
||||
_ => return None,
|
||||
_ => None,
|
||||
}
|
||||
})
|
||||
.and_then(|name_ref| NameRefClass::classify(sema, &name_ref))?;
|
||||
|
@ -341,7 +341,7 @@ impl NameRefClass {
|
|||
hir::AssocItem::TypeAlias(it) => Some(*it),
|
||||
_ => None,
|
||||
})
|
||||
.find(|alias| &alias.name(sema.db).to_string() == &name_ref.text())
|
||||
.find(|alias| alias.name(sema.db).to_string() == name_ref.text())
|
||||
{
|
||||
return Some(NameRefClass::Definition(Definition::ModuleDef(
|
||||
ModuleDef::TypeAlias(ty),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue