* chore: 🔨 css 基础单位

[skip ci]

* fix: 🐛 ca2263 System.Enum.GetValues<TEnum>()

[skip ci]
This commit is contained in:
2024-03-21 21:55:16 +08:00
committed by GitHub
parent d052e43b86
commit 1dc953a2b2

View File

@ -105,8 +105,7 @@ public static class ServiceCollectionExtensions
public static IServiceCollection AddConsoleFormatter(this IServiceCollection me)
{
return me.AddConsoleFormatter(options => {
var logLevels = Enum.GetValues(typeof(LogLevels))
.Cast<LogLevels>()
var logLevels = Enum.GetValues<LogLevels>()
.ToDictionary(x => x, x => x.GetDisplay());
#if DEBUG