Fix a comptime requirement to not be.
This commit is contained in:
parent
954b62d4a0
commit
74393b27ac
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue