mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
opsie
This commit is contained in:
@@ -303,10 +303,6 @@ pub const FDImpl = packed struct {
|
||||
}
|
||||
|
||||
pub fn format(this: FDImpl, comptime fmt: []const u8, _: std.fmt.FormatOptions, writer: anytype) !void {
|
||||
if (fmt.len != 0) {
|
||||
@compileError("invalid format string for FDImpl.format. must be either '' or 'd'");
|
||||
}
|
||||
|
||||
if (!this.isValid()) {
|
||||
try writer.writeAll("[invalid_fd]");
|
||||
return;
|
||||
@@ -317,6 +313,10 @@ pub const FDImpl = packed struct {
|
||||
return;
|
||||
}
|
||||
|
||||
if (fmt.len != 0) {
|
||||
@compileError("invalid format string for FDImpl.format. must be either '' or 'd'");
|
||||
}
|
||||
|
||||
switch (env.os) {
|
||||
else => {
|
||||
const fd = this.system();
|
||||
|
||||
Reference in New Issue
Block a user