diff --git a/maud_macros/src/parse.rs b/maud_macros/src/parse.rs index c526a562..dacb8139 100644 --- a/maud_macros/src/parse.rs +++ b/maud_macros/src/parse.rs @@ -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(())