Resolve a FIXME

Now that we are using a newer smol_str release this can be simplified :)
This commit is contained in:
Pascal Hertleif
2019-07-10 17:04:38 +02:00
parent 61135d4d4d
commit d0ff53de2d

View File

@@ -38,9 +38,7 @@ impl<'a> SyntaxText<'a> {
} }
pub fn to_smol_string(&self) -> SmolStr { pub fn to_smol_string(&self) -> SmolStr {
// FIXME: use `self.chunks().collect()` here too once self.chunks().collect()
// https://github.com/matklad/smol_str/pull/12 is merged and published
self.to_string().into()
} }
pub fn contains(&self, c: char) -> bool { pub fn contains(&self, c: char) -> bool {