From 41655c14ad33f9eed6efcc4490a604a0e2defa4b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 1 May 2026 20:59:06 +0900 Subject: refactor: fix clippy warnings Replace if-let/else-return with `?`, swap `as_ref().map(|k| k.as_slice())` for `as_deref()`, and switch test fixtures from `vec\![]` to array literals where ownership is unneeded. Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/mozart/src/commands/check_platform_reqs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart/src/commands/check_platform_reqs.rs') diff --git a/crates/mozart/src/commands/check_platform_reqs.rs b/crates/mozart/src/commands/check_platform_reqs.rs index d3ecacd..e9954f4 100644 --- a/crates/mozart/src/commands/check_platform_reqs.rs +++ b/crates/mozart/src/commands/check_platform_reqs.rs @@ -807,7 +807,7 @@ mod tests { #[test] fn test_output_json_format() { - let results = vec![ + let results = [ CheckResult { name: "php".to_string(), version: "8.2.1".to_string(), -- cgit v1.3.1