fix: FSEventsBackend.init

This commit is contained in:
CJ van den Berg 2026-02-26 13:11:39 +01:00
parent 29a701154f
commit f34fc3cb93
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -303,8 +303,14 @@ const FSEventsBackend = struct {
handler: *Handler, handler: *Handler,
}; };
fn init() error{}!@This() { fn init(handler: *Handler) error{}!@This() {
return .{ .stream = null, .queue = null, .ctx = null, .watches = .empty }; return .{
.handler = handler,
.stream = null,
.queue = null,
.ctx = null,
.watches = .empty,
};
} }
fn deinit(self: *@This(), allocator: std.mem.Allocator) void { fn deinit(self: *@This(), allocator: std.mem.Allocator) void {