Fix a comptime requirement to not be.

This commit is contained in:
Lyssieth 2024-12-02 04:31:39 +02:00
parent 954b62d4a0
commit 74393b27ac
Signed by untrusted user who does not match committer: lyssieth
GPG key ID: 200268854934CFAB

View file

@ -18,7 +18,7 @@ pub const Color = enum {
};
pub const ScopeModifier = struct {
scope: Scope,
scope: []const u8,
color: ?Color = .default,
bright: bool = false,
rename: ?[]const u8 = null,
@ -156,7 +156,7 @@ fn logFnImpl(comptime level: Level, comptime scope: Scope, comptime format: []co
else => elseBlock: {
for (globals.additionalScopes.items) |modifier| {
if (modifier.scope == scope) {
if (std.mem.eql(u8, modifier.scope, @tagName(scope))) {
const text = blk: {
if (modifier.rename) |rename| {
break :blk rename;