Use join
This commit is contained in:
parent
b1680636cf
commit
359079ca6c
1 changed files with 1 additions and 5 deletions
|
@ -394,11 +394,7 @@ impl<'cx, 'i> Parser<'cx, 'i> {
|
|||
}
|
||||
if !classes.is_empty() {
|
||||
self.render.attribute_start("class");
|
||||
let mut s = String::new();
|
||||
for class in classes {
|
||||
s = s + &*class + " ";
|
||||
}
|
||||
self.render.string(s.trim());
|
||||
self.render.string(&classes.join(" "));
|
||||
self.render.attribute_end();
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Reference in a new issue