Skip to content

Commit d0ff53d

Browse files
author
Pascal Hertleif
committed
Resolve a FIXME
Now that we are using a newer smol_str release this can be simplified :)
1 parent 61135d4 commit d0ff53d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/ra_syntax/src/syntax_text.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ impl<'a> SyntaxText<'a> {
3838
}
3939

4040
pub fn to_smol_string(&self) -> SmolStr {
41-
// FIXME: use `self.chunks().collect()` here too once
42-
// https://github.com/matklad/smol_str/pull/12 is merged and published
43-
self.to_string().into()
41+
self.chunks().collect()
4442
}
4543

4644
pub fn contains(&self, c: char) -> bool {

0 commit comments

Comments
 (0)