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 @@ pub fn to_string(&self) -> String {
}
pub fn to_smol_string(&self) -> 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()
self.chunks().collect()
}
pub fn contains(&self, c: char) -> bool {