Make rainbows optional

This commit is contained in:
Pascal Hertleif 2019-05-27 11:26:15 +02:00
parent 4ac338b608
commit 1e6ba19015
5 changed files with 29 additions and 6 deletions

View file

@ -35,7 +35,8 @@ impl<'a> SyntaxText<'a> {
}
pub fn to_smol_string(&self) -> SmolStr {
// TODO: `impl iter::FromIterator<&str> for SmolStr`
// FIXME: use `self.chunks().collect()` here too once
// https://github.com/matklad/smol_str/pull/12 is merged and published
self.to_string().into()
}