diff options
| author | Vexu <git@vexu.eu> | 2020-07-11 14:09:04 +0300 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-07-11 20:41:19 +0300 |
| commit | e85fe13e44b1e2957b9d90e19c171fdfa8cb5505 (patch) | |
| tree | 17880994dab9c0033cc139b677711f45a87ca637 /lib/std/hash/benchmark.zig | |
| parent | 8110639c7964fcb23c2b715f97ab6caa27506b93 (diff) | |
| download | zig-e85fe13e44b1e2957b9d90e19c171fdfa8cb5505.tar.gz zig-e85fe13e44b1e2957b9d90e19c171fdfa8cb5505.zip | |
run zig fmt on std lib and self hosted
Diffstat (limited to 'lib/std/hash/benchmark.zig')
| -rw-r--r-- | lib/std/hash/benchmark.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/hash/benchmark.zig b/lib/std/hash/benchmark.zig index 0eb3a25fe1..5f8a15831c 100644 --- a/lib/std/hash/benchmark.zig +++ b/lib/std/hash/benchmark.zig @@ -88,7 +88,7 @@ const Result = struct { const block_size: usize = 8 * 8192; -pub fn benchmarkHash(comptime H: var, bytes: usize) !Result { +pub fn benchmarkHash(comptime H: anytype, bytes: usize) !Result { var h = blk: { if (H.init_u8s) |init| { break :blk H.ty.init(init); @@ -119,7 +119,7 @@ pub fn benchmarkHash(comptime H: var, bytes: usize) !Result { }; } -pub fn benchmarkHashSmallKeys(comptime H: var, key_size: usize, bytes: usize) !Result { +pub fn benchmarkHashSmallKeys(comptime H: anytype, key_size: usize, bytes: usize) !Result { const key_count = bytes / key_size; var block: [block_size]u8 = undefined; prng.random.bytes(block[0..]); |
