fix: update code to compile with 0.12.0-dev.2075+f5978181e

This commit is contained in:
Tristan Partin
2024-01-08 20:05:29 -06:00
parent cfdf6cf312
commit d2813655e5
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const Version = @import("src/build/Version.zig");
// but we liberally update it. In the future, we'll be more careful about
// using released versions so that package managers can integrate better.
comptime {
const required_zig = "0.12.0-dev.2059+42389cb9c";
const required_zig = "0.12.0-dev.2075+f5978181e";
const current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable;
if (current_zig.order(min_zig) == .lt) {

View File

@ -159,7 +159,7 @@ fn entryForMode(comptime mode: Mode) ModeEntry {
/// A single entry of a possible mode we support. This is used to
/// dynamically define the enum and other tables.
const ModeEntry = struct {
name: []const u8,
name: [:0]const u8,
value: comptime_int,
default: bool = false,