diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2022-09-08 18:33:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-08 18:33:53 +0200 |
| commit | c4eadab016cf16bd32b90ba7ecc71361592a4f28 (patch) | |
| tree | fd8cfdb1aa365bdfd2b7870ae3b6c08656fe9929 | |
| parent | 064c9ef9e27ed9c427dedd6b4a1a042cb5cdc3e7 (diff) | |
| download | rust-c4eadab016cf16bd32b90ba7ecc71361592a4f28.tar.gz rust-c4eadab016cf16bd32b90ba7ecc71361592a4f28.zip | |
Update crates/rust-analyzer/src/to_proto.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
| -rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index de151f0d92c..e083b9d0e33 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -467,7 +467,7 @@ pub(crate) fn inlay_hint( | InlayKind::ImplicitReborrowHint | InlayKind::TypeHint | InlayKind::ClosingBraceHint => false, - InlayKind::BindingModeHint => inlay_hint.label.to_string() != "&", + InlayKind::BindingModeHint => inlay_hint.label.as_simple_str() != Some("&"), InlayKind::ParameterHint | InlayKind::LifetimeHint => true, }), kind: match inlay_hint.kind { |
