Move case-closing-brace writer inside cases loop

This commit is contained in:
Kneelawk 2021-08-14 08:40:42 -07:00 committed by Dzmitry Malyshau
parent 2dfcb7fcf0
commit d7af2a84b7

View File

@ -804,9 +804,9 @@ impl<W: Write> Writer<W> {
if case.fall_through {
writeln!(self.out, "{}fallthrough;", INDENT.repeat(indent + 2))?;
}
}
writeln!(self.out, "{}}}", INDENT.repeat(indent + 1))?;
writeln!(self.out, "{}}}", INDENT.repeat(indent + 1))?;
}
}
if !default.is_empty() {