diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index f5b6c1e..57baac1 100644 --- a/src/main.zig +++ b/src/main.zig | |||
| @@ -16,8 +16,8 @@ const std = @import("std"); | |||
| 16 | const zup_config = @import("zup-config"); | 16 | const zup_config = @import("zup-config"); |
| 17 | 17 | ||
| 18 | const ArgIterator = std.process.ArgIterator; | 18 | const ArgIterator = std.process.ArgIterator; |
| 19 | const ComptimeStringMap = std.ComptimeStringMap; | ||
| 20 | const GPA = std.heap.GeneralPurposeAllocator(.{}); | 19 | const GPA = std.heap.GeneralPurposeAllocator(.{}); |
| 20 | const StaticStringMap = std.StaticStringMap; | ||
| 21 | const Tuple = std.meta.Tuple; | 21 | const Tuple = std.meta.Tuple; |
| 22 | 22 | ||
| 23 | pub fn main() !void { | 23 | pub fn main() !void { |
| @@ -65,7 +65,7 @@ const CommandMap = blk: { | |||
| 65 | idx += 1; | 65 | idx += 1; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | break :blk ComptimeStringMap(Command, map_data); | 68 | break :blk StaticStringMap(Command).initComptime(map_data); |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | fn dispatch( | 71 | fn dispatch( |