diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-09-25 15:49:28 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-09-25 15:49:28 +0800 |
| commit | 0eeb842c21ff1681e77ccbd47fe7a3c9779a65d5 (patch) | |
| tree | 8c3ffb1f97dbbedb7756fb33f519547083047f24 /crates/utils/cfg_file/cfg_file_test | |
| parent | 2865206dda1d57df1c95dd8e49d5599db89407ae (diff) | |
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
Diffstat (limited to 'crates/utils/cfg_file/cfg_file_test')
| -rw-r--r-- | crates/utils/cfg_file/cfg_file_test/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |
