feat: add comprehensive formatting rules and type inference guidelines

This commit is contained in:
overtrue
2025-05-28 16:04:38 +08:00
parent f05a0b8e83
commit 8747a91df8
28 changed files with 792 additions and 383 deletions
+3 -5
View File
@@ -58,9 +58,7 @@ mod tests {
fn ensure_logger_init() {
INIT.call_once(|| {
// Initialize a simple test logger to avoid conflicts
let _ = tracing_subscriber::fmt()
.with_test_writer()
.try_init();
let _ = tracing_subscriber::fmt().with_test_writer().try_init();
});
}
@@ -84,7 +82,7 @@ mod tests {
assert!(logs_dir.to_string_lossy().contains("logs"));
}
#[test]
#[test]
fn test_rolling_file_appender_builder() {
ensure_logger_init();
@@ -120,7 +118,7 @@ mod tests {
assert!(!format!("{:?}", never).is_empty());
}
#[test]
#[test]
fn test_fmt_layer_configuration() {
ensure_logger_init();