fix: fix clippy
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m40s
Continuous Integration / Build Package (push) Successful in 2m18s

This commit is contained in:
Konstantin Fickel 2026-04-19 21:07:30 +02:00
parent 43ec0a56de
commit 8e69a6afe8
Signed by: kfickel
GPG key ID: A793722F9933C1A5

View file

@ -1048,13 +1048,15 @@ mod tests {
assert!(items assert!(items
.iter() .iter()
.any(|i| i.kind == Some(CompletionItemKind::VALUE) .any(|i| i.kind == Some(CompletionItemKind::VALUE)
&& i.insert_text.as_deref().map_or(false, |t| t.len() == 8 && i.insert_text
&& t.chars().all(|c| c.is_ascii_digit())))); .as_deref()
.is_some_and(|t| t.len() == 8 && t.chars().all(|c| c.is_ascii_digit()))));
assert!(items assert!(items
.iter() .iter()
.any(|i| i.kind == Some(CompletionItemKind::VALUE) .any(|i| i.kind == Some(CompletionItemKind::VALUE)
&& i.insert_text.as_deref().map_or(false, |t| t.len() == 6 && i.insert_text
&& t.chars().all(|c| c.is_ascii_digit())))); .as_deref()
.is_some_and(|t| t.len() == 6 && t.chars().all(|c| c.is_ascii_digit()))));
} }
#[test] #[test]