diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide_api/src/inlay_hints.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/inlay_hints.rs b/crates/ra_ide_api/src/inlay_hints.rs index 7d49ebcf4..4f959f4d3 100644 --- a/crates/ra_ide_api/src/inlay_hints.rs +++ b/crates/ra_ide_api/src/inlay_hints.rs | |||
@@ -55,7 +55,7 @@ fn get_inlay_hints( | |||
55 | 55 | ||
56 | Some(vec![InlayHint { | 56 | Some(vec![InlayHint { |
57 | range: pat_range, | 57 | range: pat_range, |
58 | text: let_syntax.text().to_smol_string(), | 58 | text: let_syntax.text().to_string().into(), |
59 | inlay_kind: InlayKind::LetBinding, | 59 | inlay_kind: InlayKind::LetBinding, |
60 | inlay_type_string, | 60 | inlay_type_string, |
61 | }]) | 61 | }]) |
@@ -77,7 +77,7 @@ fn get_inlay_hints( | |||
77 | .to_string(); | 77 | .to_string(); |
78 | Some(InlayHint { | 78 | Some(InlayHint { |
79 | range: closure_param_syntax.text_range(), | 79 | range: closure_param_syntax.text_range(), |
80 | text: closure_param_syntax.text().to_smol_string(), | 80 | text: closure_param_syntax.text().to_string().into(), |
81 | inlay_kind: InlayKind::ClosureParameter, | 81 | inlay_kind: InlayKind::ClosureParameter, |
82 | inlay_type_string, | 82 | inlay_type_string, |
83 | }) | 83 | }) |