clippy: a char array for the subtitle separators in main_title (manual_pattern_char_comparison)
Test / cargo test (push) Successful in 5m29s
Publish image / publish (push) Failing after 15m37s

This commit was merged in pull request #1.
This commit is contained in:
Manielle
2026-10-19 20:49:39 +00:00
parent e14797e57b
commit 560effe226
@@ -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]);