mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-20 02:42:43 +00:00
Move case-closing-brace writer inside cases loop
This commit is contained in:
parent
2dfcb7fcf0
commit
d7af2a84b7
@ -804,10 +804,10 @@ impl<W: Write> Writer<W> {
|
||||
if case.fall_through {
|
||||
writeln!(self.out, "{}fallthrough;", INDENT.repeat(indent + 2))?;
|
||||
}
|
||||
}
|
||||
|
||||
writeln!(self.out, "{}}}", INDENT.repeat(indent + 1))?;
|
||||
}
|
||||
}
|
||||
|
||||
if !default.is_empty() {
|
||||
writeln!(self.out, "{}default: {{", INDENT.repeat(indent + 1))?;
|
||||
|
Loading…
Reference in New Issue
Block a user