mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Simplify inlay hints needs_resolve
This commit is contained in:
parent
f07489ada9
commit
3115fd8b41
15 changed files with 6 additions and 24 deletions
|
@ -50,7 +50,6 @@ pub(super) fn hints(
|
|||
_ => return,
|
||||
};
|
||||
acc.push(InlayHint {
|
||||
needs_resolve: false,
|
||||
range,
|
||||
kind: InlayKind::BindingMode,
|
||||
label: r.into(),
|
||||
|
@ -69,7 +68,6 @@ pub(super) fn hints(
|
|||
hir::BindingMode::Ref(Mutability::Shared) => "ref",
|
||||
};
|
||||
acc.push(InlayHint {
|
||||
needs_resolve: false,
|
||||
range: pat.syntax().text_range(),
|
||||
kind: InlayKind::BindingMode,
|
||||
label: bm.into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue