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