diff options
| author | LeRoyce Pearson <leroycepearson@geemili.xyz> | 2020-03-06 20:21:43 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-05-25 13:48:43 -0400 |
| commit | c8062321b3838b35bdf9931026cbea1f67ba6bc1 (patch) | |
| tree | e61111c6cc6006367657eb674069c2317d3674ad /lib/std/cache_hash.zig | |
| parent | 86fe88bbcbbd14455ada878db75b387fb5f864fc (diff) | |
| download | zig-c8062321b3838b35bdf9931026cbea1f67ba6bc1.tar.gz zig-c8062321b3838b35bdf9931026cbea1f67ba6bc1.zip | |
Use fs.File
Diffstat (limited to 'lib/std/cache_hash.zig')
| -rw-r--r-- | lib/std/cache_hash.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/cache_hash.zig b/lib/std/cache_hash.zig index d2e4e28a0d..bd5ec3af60 100644 --- a/lib/std/cache_hash.zig +++ b/lib/std/cache_hash.zig @@ -1,6 +1,5 @@ const Blake3 = @import("crypto.zig").Blake3; const fs = @import("fs.zig"); -const File = fs.File; const base64 = @import("base64.zig"); const ArrayList = @import("array_list.zig").ArrayList; const debug = @import("debug.zig"); @@ -39,7 +38,7 @@ pub const CacheHash = struct { blake3: Blake3, manifest_dir: []const u8, manifest_file_path: ?[]const u8, - manifest_file: ?File, + manifest_file: ?fs.File, manifest_dirty: bool, force_check_manifest: bool, files: ArrayList(CacheHashFile), @@ -295,7 +294,7 @@ pub const CacheHash = struct { } }; -fn hash_file(alloc: *Allocator, bin_digest: []u8, handle: *const File) !void { +fn hash_file(alloc: *Allocator, bin_digest: []u8, handle: *const fs.File) !void { var blake3 = Blake3.init(); var in_stream = handle.inStream().stream; |
