Skip to content

Commit 3632d59

Browse files
committed
minor: Remove pointless rebindings
1 parent 96b641e commit 3632d59

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/hir/src/source_analyzer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ impl SourceAnalyzer {
344344
}
345345
None
346346
})();
347-
if let resolved @ Some(_) = resolved {
347+
if let Some(_) = resolved {
348348
return resolved;
349349
}
350350

@@ -389,7 +389,7 @@ impl SourceAnalyzer {
389389
let builtin = name_ref.as_ref().and_then(|name_ref| {
390390
BuiltinAttr::by_name(db, self.resolver.krate().into(), &name_ref.text())
391391
});
392-
if let builtin @ Some(_) = builtin {
392+
if let Some(_) = builtin {
393393
return builtin.map(PathResolution::BuiltinAttr);
394394
}
395395
return match resolve_hir_path_as_macro(db, &self.resolver, &hir_path) {

crates/hir_ty/src/lower.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ fn named_associated_type_shorthand_candidates<R>(
10461046
),
10471047
_ => None,
10481048
});
1049-
if let res @ Some(_) = res {
1049+
if let Some(_) = res {
10501050
return res;
10511051
}
10521052
// Handle `Self::Type` referring to own associated type in trait definitions

crates/ide/src/hover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub(crate) fn hover(
152152
let res = descended
153153
.iter()
154154
.find_map(|token| hover_type_fallback(sema, config, token, &original_token));
155-
if let res @ Some(_) = res {
155+
if let Some(_) = res {
156156
return res;
157157
}
158158
}

0 commit comments

Comments
 (0)