Skip to content

Commit c4eadab

Browse files
Update crates/rust-analyzer/src/to_proto.rs
Co-authored-by: Lukas Wirth <[email protected]>
1 parent 064c9ef commit c4eadab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/to_proto.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ pub(crate) fn inlay_hint(
467467
| InlayKind::ImplicitReborrowHint
468468
| InlayKind::TypeHint
469469
| InlayKind::ClosingBraceHint => false,
470-
InlayKind::BindingModeHint => inlay_hint.label.to_string() != "&",
470+
InlayKind::BindingModeHint => inlay_hint.label.as_simple_str() != Some("&"),
471471
InlayKind::ParameterHint | InlayKind::LifetimeHint => true,
472472
}),
473473
kind: match inlay_hint.kind {

0 commit comments

Comments
 (0)