mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Make rainbows optional
This commit is contained in:
parent
4ac338b608
commit
1e6ba19015
5 changed files with 29 additions and 6 deletions
|
@ -35,7 +35,8 @@ impl<'a> SyntaxText<'a> {
|
|||
}
|
||||
|
||||
pub fn to_smol_string(&self) -> SmolStr {
|
||||
// TODO: `impl iter::FromIterator<&str> for 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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue