authorgravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-06 20:21:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-25 13:48:43-04:00
logc8062321b3838b35bdf9931026cbea1f67ba6bc1
treee61111c6cc6006367657eb674069c2317d3674ad
parent86fe88bbcbbd14455ada878db75b387fb5f864fc

Use fs.File


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

lib/std/cache_hash.zig+2-3
......@@ -1,6 +1,5 @@
11const Blake3 = @import("crypto.zig").Blake3;
22const fs = @import("fs.zig");
3const File = fs.File;
43const base64 = @import("base64.zig");
54const ArrayList = @import("array_list.zig").ArrayList;
65const debug = @import("debug.zig");
......@@ -39,7 +38,7 @@ pub const CacheHash = struct {
3938 blake3: Blake3,
4039 manifest_dir: []const u8,
4140 manifest_file_path: ?[]const u8,
42 manifest_file: ?File,
41 manifest_file: ?fs.File,
4342 manifest_dirty: bool,
4443 force_check_manifest: bool,
4544 files: ArrayList(CacheHashFile),
......@@ -295,7 +294,7 @@ pub const CacheHash = struct {
295294 }
296295};
297296
298fn hash_file(alloc: *Allocator, bin_digest: []u8, handle: *const File) !void {
297fn hash_file(alloc: *Allocator, bin_digest: []u8, handle: *const fs.File) !void {
299298 var blake3 = Blake3.init();
300299 var in_stream = handle.inStream().stream;
301300