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() {
|
if !classes.is_empty() {
|
||||||
self.render.attribute_start("class");
|
self.render.attribute_start("class");
|
||||||
let mut s = String::new();
|
self.render.string(&classes.join(" "));
|
||||||
for class in classes {
|
|
||||||
s = s + &*class + " ";
|
|
||||||
}
|
|
||||||
self.render.string(s.trim());
|
|
||||||
self.render.attribute_end();
|
self.render.attribute_end();
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Reference in a new issue