glfw: fix for getClipboardString reaching unreachable prong on linux CI
This commit is contained in:
parent
ef7ada052c
commit
43b2502e3a
1 changed files with 3 additions and 1 deletions
|
|
@ -49,7 +49,9 @@ pub inline fn getClipboardString() Error![:0]const u8 {
|
||||||
internal_debug.assertInitialized();
|
internal_debug.assertInitialized();
|
||||||
const value = c.glfwGetClipboardString(null);
|
const value = c.glfwGetClipboardString(null);
|
||||||
getError() catch |err| return switch (err) {
|
getError() catch |err| return switch (err) {
|
||||||
Error.PlatformError => err,
|
Error.PlatformError,
|
||||||
|
Error.FormatUnavailable,
|
||||||
|
=> err,
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
};
|
};
|
||||||
return std.mem.span(value);
|
return std.mem.span(value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue