| ... | @@ -887,7 +887,7 @@ pub fn Watch(comptime V: type) type { | ... | @@ -887,7 +887,7 @@ pub fn Watch(comptime V: type) type { |
| 887 | } | 887 | } |
| 888 | | 888 | |
| 889 | async fn addFileKEvent(self: *Self, file_path: []const u8, value: V) !?V { | 889 | async fn addFileKEvent(self: *Self, file_path: []const u8, value: V) !?V { |
| 890 | const resolved_path = try std.fs.path.resolve(self.channel.loop.allocator, [][]const u8{file_path}); | 890 | const resolved_path = try std.fs.path.resolve(self.channel.loop.allocator, [_][]const u8{file_path}); |
| 891 | var resolved_path_consumed = false; | 891 | var resolved_path_consumed = false; |
| 892 | defer if (!resolved_path_consumed) self.channel.loop.allocator.free(resolved_path); | 892 | defer if (!resolved_path_consumed) self.channel.loop.allocator.free(resolved_path); |
| 893 | | 893 | |