diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-06-04 01:12:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-04 01:12:38 -0400 |
| commit | 7d15a3ac71c5d8dc8c08dfd8ea8ad43d4eae188a (patch) | |
| tree | ae007106526e300bb7143be003fe8d847ba7230c /src/Cache.zig | |
| parent | 87dae0ce98fde1957a9290c22866b3101ce419d8 (diff) | |
| parent | 6953c8544b68c788dca4ed065e4a15eccbd4446b (diff) | |
| download | zig-7d15a3ac71c5d8dc8c08dfd8ea8ad43d4eae188a.tar.gz zig-7d15a3ac71c5d8dc8c08dfd8ea8ad43d4eae188a.zip | |
Merge pull request #8975 from SpexGuy/hash-map-updates
Breaking hash map changes for 0.8.0
Diffstat (limited to 'src/Cache.zig')
| -rw-r--r-- | src/Cache.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Cache.zig b/src/Cache.zig index 6c17f52d69..6d20ca6367 100644 --- a/src/Cache.zig +++ b/src/Cache.zig @@ -90,10 +90,10 @@ pub const HashHelper = struct { } pub fn addStringSet(hh: *HashHelper, hm: std.StringArrayHashMapUnmanaged(void)) void { - const entries = hm.items(); - hh.add(entries.len); - for (entries) |entry| { - hh.addBytes(entry.key); + const keys = hm.keys(); + hh.add(keys.len); + for (keys) |key| { + hh.addBytes(key); } } |
