std.Thread: make unreachable errors in sleep() clearer

This commit is contained in:
Alex Rønne Petersen
2025-08-04 20:46:40 +02:00
parent 00fb5e34df
commit d8d497ffe4

View File

@@ -83,10 +83,9 @@ pub fn sleep(nanoseconds: u64) void {
req = rem; req = rem;
continue; continue;
}, },
.FAULT, .FAULT => unreachable,
.INVAL, .INVAL => unreachable,
.OPNOTSUPP, .OPNOTSUPP => unreachable,
=> unreachable,
else => return, else => return,
} }
} }