mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Fix the string conversions
This commit is contained in:
parent
31aef808d9
commit
d32774b464
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue