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
1 changed files with 1 additions and 3 deletions
|
|
@ -38,9 +38,7 @@ impl<'a> SyntaxText<'a> {
|
|||
}
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue