Remove unnecessary Hint suffix on InlayKind variants

This commit is contained in:
Lukas Wirth 2023-01-14 12:20:12 +01:00
parent 60075a6625
commit f2444b2a40
13 changed files with 87 additions and 95 deletions

View file

@ -40,11 +40,7 @@ pub(super) fn hints(
(true, false) => "&",
_ => return,
};
acc.push(InlayHint {
range,
kind: InlayKind::BindingModeHint,
label: r.to_string().into(),
});
acc.push(InlayHint { range, kind: InlayKind::BindingMode, label: r.to_string().into() });
});
match pat {
ast::Pat::IdentPat(pat) if pat.ref_token().is_none() && pat.mut_token().is_none() => {
@ -56,7 +52,7 @@ pub(super) fn hints(
};
acc.push(InlayHint {
range: pat.syntax().text_range(),
kind: InlayKind::BindingModeHint,
kind: InlayKind::BindingMode,
label: bm.to_string().into(),
});
}