use char pattern for single-character splits: a.split("x") -> a.split('x')
This commit is contained in:
parent
786ccc336d
commit
e699076780
3 changed files with 3 additions and 3 deletions
|
|
@ -205,7 +205,7 @@ fn build_rule(v: &[u8], positions: &[usize]) -> String {
|
|||
.replace("\t", " ")
|
||||
.replace("{", "")
|
||||
.replace("}", "")
|
||||
.split(" ")
|
||||
.split(' ')
|
||||
.filter(|s| s.len() > 0)
|
||||
.collect::<Vec<&str>>()
|
||||
.join(" ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue