From d32774b4640daf708832e7e5c3b3c62031198beb Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 22 Jul 2019 00:16:07 +0300 Subject: Fix the string conversions --- crates/ra_ide_api/src/inlay_hints.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide_api/src') 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( Some(vec![InlayHint { range: pat_range, - text: let_syntax.text().to_smol_string(), + text: let_syntax.text().to_string().into(), inlay_kind: InlayKind::LetBinding, inlay_type_string, }]) @@ -77,7 +77,7 @@ fn get_inlay_hints( .to_string(); Some(InlayHint { range: closure_param_syntax.text_range(), - text: closure_param_syntax.text().to_smol_string(), + text: closure_param_syntax.text().to_string().into(), inlay_kind: InlayKind::ClosureParameter, inlay_type_string, }) -- cgit v1.2.3