Move case-closing-brace writer inside cases loop

This commit is contained in:
Kneelawk authored and Dzmitry Malyshau committed 2021-08-15 22:39:23 -04:00
1 parent 2dfcb7fcf0
commit d7af2a84b7
1 file changed
+2 -2
+2 -2
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() {