From 99739da0169db308ecad28d99838a0f4574ae792 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Tue, 4 Jul 2023 02:37:19 +0300 Subject: Update for newest zig --- src/list.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/list.zig') diff --git a/src/list.zig b/src/list.zig index 0a0fee9..9ff26c2 100644 --- a/src/list.zig +++ b/src/list.zig @@ -19,7 +19,7 @@ pub const max_args = 0; pub fn main(comptime Result: type, config: Config, res: Result) !void { const allocator = config.allocator; - + var list_active = res.args.active != 0; var list_available = res.args.available != 0; var list_installed = res.args.installed != 0; @@ -96,7 +96,7 @@ fn printList(allocator: Allocator, installations: Installations) !void { list.appendAssumeCapacity(.{ .name = kv.key_ptr.*, .installation = kv.value_ptr.* }); } - std.sort.sort(InstallationAndName, list.items, {}, InstallationAndName.lessThan); + std.mem.sort(InstallationAndName, list.items, {}, InstallationAndName.lessThan); const writer = std.io.getStdOut().writer(); for (list.items) |item| { -- cgit v1.2.3