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/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart/src/commands/search.rs') diff --git a/crates/mozart/src/commands/search.rs b/crates/mozart/src/commands/search.rs index b747b0e..accd6af 100644 --- a/crates/mozart/src/commands/search.rs +++ b/crates/mozart/src/commands/search.rs @@ -508,7 +508,7 @@ mod tests { #[test] fn test_only_vendor_deduplicates_vendor_names() { - let results = vec![ + let results = [ make_result("monolog/monolog"), make_result("monolog/handler"), make_result("monolog/formatter"), -- cgit v1.3.1