From 74393b27acff70e4f8f939b06166337ade52f147 Mon Sep 17 00:00:00 2001 From: Lyssieth Date: Mon, 2 Dec 2024 04:31:39 +0200 Subject: [PATCH] Fix a comptime requirement to not be. --- src/log/logging.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log/logging.zig b/src/log/logging.zig index 280fe4a..56d0b07 100644 --- a/src/log/logging.zig +++ b/src/log/logging.zig @@ -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;