Use toggled class shorthand in benchmark

This commit is contained in:
Chris Wong 2016-11-24 20:45:08 +13:00
parent fb935c2e13
commit 8d0e412336

View file

@ -29,7 +29,7 @@ fn render_template(b: &mut test::Bencher) {
h1 { "CSL " (year) }
ul {
@for (i, team) in teams.iter().enumerate() {
li class=@if i == 0 { "champion" } {
li.champion[i == 0] {
b (team.name) ": " (team.score)
}
}