fix: FSEventsBackend.init
This commit is contained in:
parent
29a701154f
commit
f34fc3cb93
1 changed files with 8 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue