aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorPascal Hertleif <[email protected]>2019-05-27 10:26:15 +0100
committerPascal Hertleif <[email protected]>2019-05-27 10:44:46 +0100
commit1e6ba1901550fb1610a1a464c48ec358cd3c339c (patch)
tree60ff1f4a42f8ef297c07d5716af67e3057c8e1bd /crates
parent4ac338b608bb40c5126d019db63232e7834914c2 (diff)
Make rainbows optional
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/src/syntax_text.rs3
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