Skip to content

Commit

Permalink
Use join
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Feb 1, 2016
1 parent 164ea57 commit 812ec01
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions maud_macros/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,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(())
Expand Down

0 comments on commit 812ec01

Please sign in to comment.