authorgravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-14 17:13:46-06:00
committergravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-14 17:13:46-06:00
log947abb7626cae990c407d347f62a625001c17cdf
tree534257a892739483373db19a1e6f8f2aae82d4bd
parent49128c86f8eb6cc42f55b6a7a9d0aa66d222b1a6

Fix compile error on windows


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/fs.zig+2-2
......@@ -1860,7 +1860,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {
18601860 }
18611861
18621862 if (builtin.os.tag == .windows) {
1863 const threads = std.ArrayList(*std.Thread).init(testing.allocator);
1863 var threads = std.ArrayList(*std.Thread).init(std.testing.allocator);
18641864 defer {
18651865 for (threads.toSlice()) |thread| {
18661866 thread.wait();
......@@ -1868,7 +1868,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void {
18681868 threads.deinit();
18691869 }
18701870 for (ctxs) |*ctx, idx| {
1871 threads.append(try std.Thread.spawn(ctx, Context.run));
1871 try threads.append(try std.Thread.spawn(ctx, FileLockTestContext.run));
18721872 }
18731873 } else {
18741874 var ctx_opt: ?*FileLockTestContext = null;