refactor: simplify initialization flow and modernize string formatting (#548)

This commit is contained in:
weisd
2025-09-16 15:44:50 +08:00
committed by GitHub
parent a12a3bedc3
commit ae7e86d7ef
16 changed files with 71 additions and 97 deletions
+3 -4
View File
@@ -580,7 +580,7 @@ mod tests {
for env_value in production_envs {
let is_production = env_value.to_lowercase() == "production";
assert!(is_production, "Should detect '{}' as production environment", env_value);
assert!(is_production, "Should detect '{env_value}' as production environment");
}
}
@@ -591,7 +591,7 @@ mod tests {
for env_value in non_production_envs {
let is_production = env_value.to_lowercase() == "production";
assert!(!is_production, "Should not detect '{}' as production environment", env_value);
assert!(!is_production, "Should not detect '{env_value}' as production environment");
}
}
@@ -674,8 +674,7 @@ mod tests {
assert_eq!(
filter_variant, expected_variant,
"Log level '{}' should map to '{}'",
input_level, expected_variant
"Log level '{input_level}' should map to '{expected_variant}'"
);
}
}