From 560effe2264d8ab13aadcc3ad3cec92c242a6c05 Mon Sep 17 00:00:00 2001 From: Manielle <75130972+Manielle@users.noreply.github.com> Date: Mon, 19 Oct 2026 20:49:39 +0000 Subject: [PATCH] clippy: a char array for the subtitle separators in main_title (manual_pattern_char_comparison) --- feeder-plugin/book-feeder/src/openlibrary_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeder-plugin/book-feeder/src/openlibrary_client.rs b/feeder-plugin/book-feeder/src/openlibrary_client.rs index 74c10a2..842f3fa 100644 --- a/feeder-plugin/book-feeder/src/openlibrary_client.rs +++ b/feeder-plugin/book-feeder/src/openlibrary_client.rs @@ -769,7 +769,7 @@ fn etext_of(body: &Value, gutenberg_id: u64) -> Etext { pub fn main_title(raw: &str) -> String { let lower = raw.to_lowercase(); let head = lower - .split(|c: char| matches!(c, ';' | ':' | '(' | '[')) + .split([';', ':', '(', '[']) .next() .unwrap_or_default(); let head = head.find(", or").map_or(head, |i| &head[..i]);