From 8e69a6afe8dd5b266957a6510dc4c56ac068f601 Mon Sep 17 00:00:00 2001 From: Konstantin Fickel Date: Sun, 19 Apr 2026 21:07:30 +0200 Subject: [PATCH] fix: fix clippy --- src/cli/commands/lsp.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/cli/commands/lsp.rs b/src/cli/commands/lsp.rs index 8687f7e..88362d0 100644 --- a/src/cli/commands/lsp.rs +++ b/src/cli/commands/lsp.rs @@ -1048,13 +1048,15 @@ mod tests { assert!(items .iter() .any(|i| i.kind == Some(CompletionItemKind::VALUE) - && i.insert_text.as_deref().map_or(false, |t| t.len() == 8 - && t.chars().all(|c| c.is_ascii_digit())))); + && i.insert_text + .as_deref() + .is_some_and(|t| t.len() == 8 && t.chars().all(|c| c.is_ascii_digit())))); assert!(items .iter() .any(|i| i.kind == Some(CompletionItemKind::VALUE) - && i.insert_text.as_deref().map_or(false, |t| t.len() == 6 - && t.chars().all(|c| c.is_ascii_digit())))); + && i.insert_text + .as_deref() + .is_some_and(|t| t.len() == 6 && t.chars().all(|c| c.is_ascii_digit())))); } #[test]