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