From c25b157ddaede518d92ee2d87ad536a5b6b097de Mon Sep 17 00:00:00 2001 From: Josh Holland Date: Fri, 6 Nov 2020 18:54:08 +0000 Subject: remove deprecated uses of ArrayList.span --- tools/process_headers.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/process_headers.zig') 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 -- cgit v1.2.3