Simplify inlay hints needs_resolve

This commit is contained in:
Lukas Wirth 2024-03-12 15:02:17 +01:00
parent f07489ada9
commit 3115fd8b41
15 changed files with 6 additions and 24 deletions

View file

@ -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(),