From 13c63000cecd9a2d66efa68e62d02dbc3fbae3fd Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 2 Jan 2026 19:11:44 -0800 Subject: [PATCH] tidy a bit --- File.zig | 7 ++----- nfs.zig | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/File.zig b/File.zig index f8ae0d07c934f868f23f63678b6a897ff1c7120a..7447115f600d4b810507acce4b0e5b563a4d64d2 100644 --- a/File.zig +++ b/File.zig @@ -18,8 +18,7 @@ pub fn close(self: File) void { } pub const ReadError = switch (builtin.target.os.tag) { - .linux, - => sys_linux.errno.Error, + .linux => sys_linux.errno.Error, else => @compileError("TODO"), }; pub usingnamespace nio.Readable(@This(), ._bare); @@ -37,9 +36,7 @@ pub fn anyReadable(self: File) nio.AnyReadable { } }; return .{ - .vtable = &.{ - .read = S.read, - }, + .vtable = &.{ .read = S.read }, .state = @ptrFromInt(@as(usize, @bitCast(@as(isize, @intCast(@intFromEnum(self.fd)))))), }; } diff --git a/nfs.zig b/nfs.zig index 9ad64ae7955b9c419a91b8d7657604bde6ba06c0..f720dc5a3b66f2e9b37f11c47dcb66e9593c0a68 100644 --- a/nfs.zig +++ b/nfs.zig @@ -8,8 +8,7 @@ pub const File = @import("./File.zig"); const os = builtin.target.os.tag; pub const Handle = switch (os) { - .linux, - => enum(c_int) { _ }, + .linux => enum(c_int) { _ }, else => @compileError("TODO"), }; -- 2.54.0