From f34fc3cb936a2b1feea473853af8ccae23cdf157 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 26 Feb 2026 13:11:39 +0100 Subject: [PATCH] fix: FSEventsBackend.init --- src/nightwatch.zig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/nightwatch.zig b/src/nightwatch.zig index f1e24b0..7f17162 100644 --- a/src/nightwatch.zig +++ b/src/nightwatch.zig @@ -303,8 +303,14 @@ const FSEventsBackend = struct { handler: *Handler, }; - fn init() error{}!@This() { - return .{ .stream = null, .queue = null, .ctx = null, .watches = .empty }; + fn init(handler: *Handler) error{}!@This() { + return .{ + .handler = handler, + .stream = null, + .queue = null, + .ctx = null, + .watches = .empty, + }; } fn deinit(self: *@This(), allocator: std.mem.Allocator) void {