| author | |
| committer | |
| log | 3c4abacba67830f368f0d22de796a9b531044a15 |
| tree | 6fa1538d7affbfcafbbbdec5e63a604b24c7d959 |
| parent | 0e30edd8d099f005e3d1ee4de1d130c6e5c69295 |
1 files changed, 1 insertions(+), 3 deletions(-)
lib/std/hash/auto_hash.zig+1-3| ... | ... | @@ -113,11 +113,9 @@ pub fn hash(hasher: var, key: var, comptime strat: HashStrategy) void { |
| 113 | 113 | hasher.update(mem.asBytes(&key)); |
| 114 | 114 | } else { |
| 115 | 115 | // Otherwise, hash every element. |
| 116 | // TODO remove the copy to an array once field access is done. | |
| 117 | const array: [info.len]info.child = key; | |
| 118 | 116 | comptime var i = 0; |
| 119 | 117 | inline while (i < info.len) : (i += 1) { |
| 120 | hash(hasher, array[i], strat); | |
| 118 | hash(hasher, key[i], strat); | |
| 121 | 119 | } |
| 122 | 120 | } |
| 123 | 121 | }, |