From 0eeb842c21ff1681e77ccbd47fe7a3c9779a65d5 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 25 Sep 2025 15:49:28 +0800 Subject: Fix clippy warnings in test files - Convert manual async functions to async fn syntax - Replace assert_eq!(true/false, ...) with assert!(...) and assert!(!...) - Fix useless vec warning by using array directly - All tests continue to pass after optimizations --- crates/utils/cfg_file/cfg_file_test/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/utils/cfg_file/cfg_file_test') diff --git a/crates/utils/cfg_file/cfg_file_test/src/lib.rs b/crates/utils/cfg_file/cfg_file_test/src/lib.rs index 800dfe7..4db4c22 100644 --- a/crates/utils/cfg_file/cfg_file_test/src/lib.rs +++ b/crates/utils/cfg_file/cfg_file_test/src/lib.rs @@ -19,7 +19,7 @@ mod test_cfg_file { let mut example = ExampleConfig { name: "Weicao".to_string(), age: 22, - hobby: vec!["Programming", "Painting"] + hobby: ["Programming", "Painting"] .iter() .map(|m| m.to_string()) .collect(), -- cgit