From 80f4398f1fed8d46d73cab8045005c02189b34fc Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 12:40:11 -0300 Subject: idioms #14, the rest: wire's has_cell_pixels (@hasField on a struct that always has the field) goes with its comptime branches, syntax's predicate ops are a stringToEnum switch, the public surfaces of sam_edit, locations, Names, Macro, selection_pipe, recent and builtins_json name their sets (OutOfMemory, Writer.Error), and std.fs.path and max_path_bytes are std.Io.Dir's Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/selection_pipe.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/selection_pipe.zig') diff --git a/src/selection_pipe.zig b/src/selection_pipe.zig index 8d06077e..200eff95 100644 --- a/src/selection_pipe.zig +++ b/src/selection_pipe.zig @@ -51,7 +51,7 @@ pub const Job = struct { token: u32 = 0, env: [][]u8 = &.{}, - pub fn copy(gpa: std.mem.Allocator, request: Request) !*Job { + pub fn copy(gpa: std.mem.Allocator, request: Request) error{OutOfMemory}!*Job { const job = try gpa.create(Job); errdefer gpa.destroy(job); job.* = .{ -- cgit v1.3