wlr-output-management: fix bug due to zig miscompilation

It looks like having the empty error capture |_| on the else branch of
the if statement causes the else branch to be ignored by the compiler.

This should be a compile error, as the condition of the if statement is
a bool, not an error union.
This commit is contained in:
Isaac Freund 2023-01-30 23:48:24 +01:00
parent 76952183c0
commit 5274383c72
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -468,7 +468,7 @@ fn processOutputConfig(
self.removeOutput(output); self.removeOutput(output);
self.output_layout.remove(output.wlr_output); self.output_layout.remove(output.wlr_output);
} }
} else |_| { } else {
std.log.scoped(.output_manager).err("failed to apply config to output {s}", .{ std.log.scoped(.output_manager).err("failed to apply config to output {s}", .{
output.wlr_output.name, output.wlr_output.name,
}); });