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 e351ee3b7f
commit 367be3777c
No known key found for this signature in database

View File

@ -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,
}
}