From ff551374a03c3310bdcbf6f5efa62b670037c3b0 Mon Sep 17 00:00:00 2001 From: Scott Redig Date: Tue, 4 Feb 2025 13:55:41 -0800 Subject: [PATCH] fix typo of anytype to type This seems like a simple typo. The values are immediately used in a struct as types, so there's no reason to use anytype here, afaik. --- lib/std/compress.zig | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/std/compress.zig b/lib/std/compress.zig index 200489c18a..7cc4a80d33 100644 --- a/lib/std/compress.zig +++ b/lib/std/compress.zig @@ -10,10 +10,7 @@ pub const lzma2 = @import("compress/lzma2.zig"); pub const xz = @import("compress/xz.zig"); pub const zstd = @import("compress/zstandard.zig"); -pub fn HashedReader( - comptime ReaderType: anytype, - comptime HasherType: anytype, -) type { +pub fn HashedReader(ReaderType: type, HasherType: type) type { return struct { child_reader: ReaderType, hasher: HasherType, @@ -40,10 +37,7 @@ pub fn hashedReader( return .{ .child_reader = reader, .hasher = hasher }; } -pub fn HashedWriter( - comptime WriterType: anytype, - comptime HasherType: anytype, -) type { +pub fn HashedWriter(WriterType: type, HasherType: type) type { return struct { child_writer: WriterType, hasher: HasherType,