aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index 5cf6b173fb..aad6c34010 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -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,
}
}