aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorPascal Hertleif <[email protected]>2019-07-10 16:04:38 +0100
committerPascal Hertleif <[email protected]>2019-07-10 16:04:38 +0100
commitd0ff53de2d93ef5fa4f70fb47bd1175788b7358f (patch)
tree46b2c49fc116e64f391768840603fdc21fcb8767 /crates/ra_syntax/src
parent61135d4d4df0a16cbd39831e23b7b0deeeea44a9 (diff)
Resolve a FIXME
Now that we are using a newer smol_str release this can be simplified :)
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 {