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:
parent
76952183c0
commit
5274383c72
@ -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,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user