| ... | ... | @@ -10,10 +10,7 @@ pub const lzma2 = @import("compress/lzma2.zig"); |
| 10 | 10 | pub const xz = @import("compress/xz.zig"); |
| 11 | 11 | pub const zstd = @import("compress/zstandard.zig"); |
| 12 | 12 | |
| 13 | | pub fn HashedReader( |
| 14 | | comptime ReaderType: anytype, |
| 15 | | comptime HasherType: anytype, |
| 16 | | ) type { |
| 13 | pub fn HashedReader(ReaderType: type, HasherType: type) type { |
| 17 | 14 | return struct { |
| 18 | 15 | child_reader: ReaderType, |
| 19 | 16 | hasher: HasherType, |
| ... | ... | @@ -40,10 +37,7 @@ pub fn hashedReader( |
| 40 | 37 | return .{ .child_reader = reader, .hasher = hasher }; |
| 41 | 38 | } |
| 42 | 39 | |
| 43 | | pub fn HashedWriter( |
| 44 | | comptime WriterType: anytype, |
| 45 | | comptime HasherType: anytype, |
| 46 | | ) type { |
| 40 | pub fn HashedWriter(WriterType: type, HasherType: type) type { |
| 47 | 41 | return struct { |
| 48 | 42 | child_writer: WriterType, |
| 49 | 43 | hasher: HasherType, |