remove explicit comptime because of miscompilation
This commit is contained in:
@@ -71,7 +71,6 @@ fn intersect(comptime as: []const @Type(.enum_literal), comptime bs: []const @Ty
|
||||
/// Checks whether the log is enabled for a specific combination of `tags`. Depends on the `options`
|
||||
/// set.
|
||||
pub fn logEnabled(comptime tags: []const @Type(.enum_literal)) bool {
|
||||
comptime {
|
||||
// If `tags` has at least one in `options.tags_disabled` then we never log.
|
||||
if (options.tags_disabled.len > 0) {
|
||||
if (intersect(tags, options.tags_disabled)) {
|
||||
@@ -83,7 +82,7 @@ pub fn logEnabled(comptime tags: []const @Type(.enum_literal)) bool {
|
||||
if (options.tags_enabled.len > 0) {
|
||||
return intersect(tags, options.tags_enabled);
|
||||
}
|
||||
}
|
||||
|
||||
// If neither is set then we just log everything.
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user