aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2023-01-30 23:48:24 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-01-30 23:48:24 +0100
commit5274383c72aef8c9ecd73d4a82469a3cee29c83d (patch)
tree256d9d18b097b546ce82b1250049065d2f2ec161
parent76952183c0cde7a8e2c53173567f9f98ae5258c6 (diff)
downloadriver-5274383c72aef8c9ecd73d4a82469a3cee29c83d.tar.gz
river-5274383c72aef8c9ecd73d4a82469a3cee29c83d.tar.xz
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.
-rw-r--r--river/Root.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/river/Root.zig b/river/Root.zig
index 1a18da4..6418203 100644
--- a/river/Root.zig
+++ b/river/Root.zig
@@ -468,7 +468,7 @@ fn processOutputConfig(
self.removeOutput(output);
self.output_layout.remove(output.wlr_output);
}
- } else |_| {
+ } else {
std.log.scoped(.output_manager).err("failed to apply config to output {s}", .{
output.wlr_output.name,
});