Resolve a FIXME
Now that we are using a newer smol_str release this can be simplified :)
This commit is contained in:
parent
61135d4d4d
commit
d0ff53de2d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user