aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/check_platform_reqs.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-01 20:59:06 +0900
committernsfisis <nsfisis@gmail.com>2026-05-01 21:00:25 +0900
commit41655c14ad33f9eed6efcc4490a604a0e2defa4b (patch)
treec33d7f4c849894ab6893e5a49aa1ccd17c084b4c /crates/mozart/src/commands/check_platform_reqs.rs
parent6d36c654b094dbef823850e9a90047d8bafc1adc (diff)
downloadphp-mozart-41655c14ad33f9eed6efcc4490a604a0e2defa4b.tar.gz
php-mozart-41655c14ad33f9eed6efcc4490a604a0e2defa4b.tar.zst
php-mozart-41655c14ad33f9eed6efcc4490a604a0e2defa4b.zip
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/check_platform_reqs.rs')
-rw-r--r--crates/mozart/src/commands/check_platform_reqs.rs2
1 files changed, 1 insertions, 1 deletions
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(),