summaryrefslogtreecommitdiff
path: root/src/list.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.zig')
-rw-r--r--src/list.zig4
1 files changed, 2 insertions, 2 deletions
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;
19 19
20pub fn main(comptime Result: type, config: Config, res: Result) !void { 20pub fn main(comptime Result: type, config: Config, res: Result) !void {
21 const allocator = config.allocator; 21 const allocator = config.allocator;
22 22
23 var list_active = res.args.active != 0; 23 var list_active = res.args.active != 0;
24 var list_available = res.args.available != 0; 24 var list_available = res.args.available != 0;
25 var list_installed = res.args.installed != 0; 25 var list_installed = res.args.installed != 0;
@@ -96,7 +96,7 @@ fn printList(allocator: Allocator, installations: Installations) !void {
96 list.appendAssumeCapacity(.{ .name = kv.key_ptr.*, .installation = kv.value_ptr.* }); 96 list.appendAssumeCapacity(.{ .name = kv.key_ptr.*, .installation = kv.value_ptr.* });
97 } 97 }
98 98
99 std.sort.sort(InstallationAndName, list.items, {}, InstallationAndName.lessThan); 99 std.mem.sort(InstallationAndName, list.items, {}, InstallationAndName.lessThan);
100 100
101 const writer = std.io.getStdOut().writer(); 101 const writer = std.io.getStdOut().writer();
102 for (list.items) |item| { 102 for (list.items) |item| {