* chore: 🔨 css 基础单位

[skip ci]

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

[skip ci]
This commit is contained in:
nsnail 2024-03-21 21:55:16 +08:00 committed by GitHub
parent d052e43b86
commit 1dc953a2b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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