From 553a04311a0aa3eeb667a5ffbfa90d0a6086741f Mon Sep 17 00:00:00 2001 From: Gert Pellin Date: Tue, 13 Oct 2026 16:16:35 +0200 Subject: [PATCH] EPUB/HTML: bool::then_some for the list tag (clippy) Refs #767 --- crates/epub/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epub/src/lib.rs b/crates/epub/src/lib.rs index f500bcd47..06745d16c 100644 --- a/crates/epub/src/lib.rs +++ b/crates/epub/src/lib.rs @@ -446,7 +446,7 @@ pub fn story_html(doc: &Document, sid: StoryId) -> String { if !continues_pre && pre.take().is_some() { out.push_str("\n"); } - let list_tag = (tag == "li").then(|| match props.list_type { + let list_tag = (tag == "li").then_some(match props.list_type { designcraft_doc::ListType::Numbers => "ol", designcraft_doc::ListType::Bullets => "ul", designcraft_doc::ListType::None => "ul style=\"list-style:none\"",