use char pattern for single-character splits: a.split("x") -> a.split('x')

This commit is contained in:
Matthias Krüger 2018-08-22 12:55:47 +02:00
parent 786ccc336d
commit e699076780
3 changed files with 3 additions and 3 deletions

View file

@ -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(" ")