mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
std.Thread: make unreachable errors in sleep() clearer
This commit is contained in:
parent
00fb5e34df
commit
d8d497ffe4
@ -83,10 +83,9 @@ pub fn sleep(nanoseconds: u64) void {
|
||||
req = rem;
|
||||
continue;
|
||||
},
|
||||
.FAULT,
|
||||
.INVAL,
|
||||
.OPNOTSUPP,
|
||||
=> unreachable,
|
||||
.FAULT => unreachable,
|
||||
.INVAL => unreachable,
|
||||
.OPNOTSUPP => unreachable,
|
||||
else => return,
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user