aboutsummaryrefslogtreecommitdiff
path: root/tools/process_headers.zig
diff options
context:
space:
mode:
authorJosh Holland <josh@inv.alid.pw>2020-11-06 18:54:08 +0000
committerJosh Holland <josh@inv.alid.pw>2020-11-07 11:15:44 +0000
commitc25b157ddaede518d92ee2d87ad536a5b6b097de (patch)
tree1599c465bab670beb50b63c2a5b9d8f0411fbc9d /tools/process_headers.zig
parentc9551652b01bf47a94c139846f22c5df85d07283 (diff)
downloadzig-c25b157ddaede518d92ee2d87ad536a5b6b097de.tar.gz
zig-c25b157ddaede518d92ee2d87ad536a5b6b097de.zip
remove deprecated uses of ArrayList.span
Diffstat (limited to 'tools/process_headers.zig')
-rw-r--r--tools/process_headers.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/process_headers.zig b/tools/process_headers.zig
index b5bce2ef7f..0655c118dc 100644
--- a/tools/process_headers.zig
+++ b/tools/process_headers.zig
@@ -325,7 +325,7 @@ pub fn main() !void {
},
.os = .linux,
};
- search: for (search_paths.span()) |search_path| {
+ search: for (search_paths.items) |search_path| {
var sub_path: []const []const u8 = undefined;
switch (vendor) {
.musl => {
@@ -416,7 +416,7 @@ pub fn main() !void {
try contents_list.append(contents);
}
}
- std.sort.sort(*Contents, contents_list.span(), {}, Contents.hitCountLessThan);
+ std.sort.sort(*Contents, contents_list.items, {}, Contents.hitCountLessThan);
const best_contents = contents_list.popOrNull().?;
if (best_contents.hit_count > 1) {
// worth it to make it generic