diff options
author | Kirill Bulatov <[email protected]> | 2019-07-21 22:16:07 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2019-07-21 22:16:07 +0100 |
commit | d32774b4640daf708832e7e5c3b3c62031198beb (patch) | |
tree | 0150f0cc8dbf4e070b77da825e3f1e0f60f83391 | |
parent | 31aef808d96b779dbc8ce41e27857965e79bd96f (diff) |
Fix the string conversions
-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 | }) |