Merge pull request #1264 from tristan957/fixes

fix: update code to compile with 0.12.0-dev.2075+f5978181e
This commit is contained in:
Mitchell Hashimoto
2024-01-08 19:03:39 -08:00
committed by GitHub
3 changed files with 5 additions and 5 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 // but we liberally update it. In the future, we'll be more careful about
// using released versions so that package managers can integrate better. // using released versions so that package managers can integrate better.
comptime { 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 current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable;
if (current_zig.order(min_zig) == .lt) { if (current_zig.order(min_zig) == .lt) {

6
flake.lock generated
View File

@ -194,11 +194,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1704542888, "lastModified": 1704759835,
"narHash": "sha256-Fb8tc4cXUkWw+Fva6JKbjkFFpZwu4c+ictSAQGEYjIM=", "narHash": "sha256-SiJOFTJl8pLroXjv0c8HMb/pM8678KnSqpralTzsTN0=",
"owner": "mitchellh", "owner": "mitchellh",
"repo": "zig-overlay", "repo": "zig-overlay",
"rev": "112cfb72e47cb85d17fc8075a4d70ab56964453d", "rev": "a3ae22cdf3664572047649983c3803296209d527",
"type": "github" "type": "github"
}, },
"original": { "original": {

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 /// A single entry of a possible mode we support. This is used to
/// dynamically define the enum and other tables. /// dynamically define the enum and other tables.
const ModeEntry = struct { const ModeEntry = struct {
name: []const u8, name: [:0]const u8,
value: comptime_int, value: comptime_int,
default: bool = false, default: bool = false,