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 @@...@@ -1,6 +1,5 @@
1const Blake3 = @import("crypto.zig").Blake3;1const Blake3 = @import("crypto.zig").Blake3;
2const fs = @import("fs.zig");2const fs = @import("fs.zig");
3const File = fs.File;
4const base64 = @import("base64.zig");3const base64 = @import("base64.zig");
5const ArrayList = @import("array_list.zig").ArrayList;4const ArrayList = @import("array_list.zig").ArrayList;
6const debug = @import("debug.zig");5const debug = @import("debug.zig");
...@@ -39,7 +38,7 @@ pub const CacheHash = struct {...@@ -39,7 +38,7 @@ pub const CacheHash = struct {
39 blake3: Blake3,38 blake3: Blake3,
40 manifest_dir: []const u8,39 manifest_dir: []const u8,
41 manifest_file_path: ?[]const u8,40 manifest_file_path: ?[]const u8,
42 manifest_file: ?File,41 manifest_file: ?fs.File,
43 manifest_dirty: bool,42 manifest_dirty: bool,
44 force_check_manifest: bool,43 force_check_manifest: bool,
45 files: ArrayList(CacheHashFile),44 files: ArrayList(CacheHashFile),
...@@ -295,7 +294,7 @@ pub const CacheHash = struct {...@@ -295,7 +294,7 @@ pub const CacheHash = struct {
295 }294 }
296};295};
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 {
299 var blake3 = Blake3.init();298 var blake3 = Blake3.init();
300 var in_stream = handle.inStream().stream;299 var in_stream = handle.inStream().stream;
301300