mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
minor: Remove pointless rebindings
This commit is contained in:
parent
96b641e95e
commit
3632d5946f
3 changed files with 4 additions and 4 deletions
|
@ -344,7 +344,7 @@ impl SourceAnalyzer {
|
|||
}
|
||||
None
|
||||
})();
|
||||
if let resolved @ Some(_) = resolved {
|
||||
if let Some(_) = resolved {
|
||||
return resolved;
|
||||
}
|
||||
|
||||
|
@ -389,7 +389,7 @@ impl SourceAnalyzer {
|
|||
let builtin = name_ref.as_ref().and_then(|name_ref| {
|
||||
BuiltinAttr::by_name(db, self.resolver.krate().into(), &name_ref.text())
|
||||
});
|
||||
if let builtin @ Some(_) = builtin {
|
||||
if let Some(_) = builtin {
|
||||
return builtin.map(PathResolution::BuiltinAttr);
|
||||
}
|
||||
return match resolve_hir_path_as_macro(db, &self.resolver, &hir_path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue