diff --git a/src/utils.zig b/src/utils.zig index cdde8d1..027689a 100644 --- a/src/utils.zig +++ b/src/utils.zig @@ -11,11 +11,10 @@ var path_buffer: [1024 * 1024]u8 = undefined; var fa = std.heap.FixedBufferAllocator.init(&map_error_buffer); const allocator = fa.allocator(); -const stdout = std.io.getStdOut().writer(); - // Maybe create a struct for that pub fn send(comptime format: []const u8, args: anytype) void { if (config.DONT_SEND) return; + const stdout = std.io.getStdOut().writer(); stdout.print(format, args) catch |err| { log.err("Can't send: {any}", .{err});