| ... | @@ -3429,6 +3429,21 @@ test "zig fmt: Control flow statement as body of blockless if" { | ... | @@ -3429,6 +3429,21 @@ test "zig fmt: Control flow statement as body of blockless if" { |
| 3429 | ); | 3429 | ); |
| 3430 | } | 3430 | } |
| 3431 | | 3431 | |
| | 3432 | test "zig fmt: " { |
| | 3433 | try testCanonical( |
| | 3434 | \\pub fn sendViewTags(self: Self) void { |
| | 3435 | \\ var it = ViewStack(View).iterator(self.output.views.first, std.math.maxInt(u32)); |
| | 3436 | \\ while (it.next()) |node| |
| | 3437 | \\ view_tags.append(node.view.current_tags) catch { |
| | 3438 | \\ c.wl_resource_post_no_memory(self.wl_resource); |
| | 3439 | \\ log.crit(.river_status, "out of memory", .{}); |
| | 3440 | \\ return; |
| | 3441 | \\ }; |
| | 3442 | \\} |
| | 3443 | \\ |
| | 3444 | ); |
| | 3445 | } |
| | 3446 | |
| 3432 | const std = @import("std"); | 3447 | const std = @import("std"); |
| 3433 | const mem = std.mem; | 3448 | const mem = std.mem; |
| 3434 | const warn = std.debug.warn; | 3449 | const warn = std.debug.warn; |