diff options
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/syntax_text.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/syntax_text.rs b/crates/ra_syntax/src/syntax_text.rs index bff1ed5a0..c9038cd5c 100644 --- a/crates/ra_syntax/src/syntax_text.rs +++ b/crates/ra_syntax/src/syntax_text.rs | |||
@@ -35,7 +35,8 @@ impl<'a> SyntaxText<'a> { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | pub fn to_smol_string(&self) -> SmolStr { | 37 | pub fn to_smol_string(&self) -> SmolStr { |
38 | // TODO: `impl iter::FromIterator<&str> for SmolStr` | 38 | // FIXME: use `self.chunks().collect()` here too once |
39 | // https://github.com/matklad/smol_str/pull/12 is merged and published | ||
39 | self.to_string().into() | 40 | self.to_string().into() |
40 | } | 41 | } |
41 | 42 | ||