diff options
| author | 2024-07-10 10:24:09 +0300 | |
|---|---|---|
| committer | 2024-07-10 10:24:09 +0300 | |
| commit | 4f35f40441b195749b88352c1b7e6487541b03d7 (patch) | |
| tree | b0e4612eaa18c4edee3c587ac5378d2b4b8928a8 /src/main.zig | |
| parent | Release 0.4.0 (diff) | |
| download | zup-4f35f40441b195749b88352c1b7e6487541b03d7.tar.gz zup-4f35f40441b195749b88352c1b7e6487541b03d7.tar.xz zup-4f35f40441b195749b88352c1b7e6487541b03d7.zip | |
Update for zig 0.13.0
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( |