aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/syntax_text.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/syntax_text.rs b/crates/ra_syntax/src/syntax_text.rs
index e648dc082..844bd3e13 100644
--- a/crates/ra_syntax/src/syntax_text.rs
+++ b/crates/ra_syntax/src/syntax_text.rs
@@ -38,9 +38,7 @@ impl<'a> SyntaxText<'a> {
38 } 38 }
39 39
40 pub fn to_smol_string(&self) -> SmolStr { 40 pub fn to_smol_string(&self) -> SmolStr {
41 // FIXME: use `self.chunks().collect()` here too once 41 self.chunks().collect()
42 // https://github.com/matklad/smol_str/pull/12 is merged and published
43 self.to_string().into()
44 } 42 }
45 43
46 pub fn contains(&self, c: char) -> bool { 44 pub fn contains(&self, c: char) -> bool {