From 11405ce0600d61f3772a7efe7fbd3de4cc2bf892 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 18 May 2022 01:52:36 +0000 Subject: fix: global clippy lint fixes --- src/convert/html.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/convert/html.rs') diff --git a/src/convert/html.rs b/src/convert/html.rs index 18aec1e..2f031b0 100644 --- a/src/convert/html.rs +++ b/src/convert/html.rs @@ -33,7 +33,7 @@ pub fn convert(source: Vec) -> String { html.push_str(&format!( "{}
", to, - text.unwrap_or(to.clone()) + text.unwrap_or_else(|| to.clone()) )); } Node::Heading { @@ -67,7 +67,7 @@ pub fn convert(source: Vec) -> String { } => { html.push_str(&format!("
{}
", text)); } - _ => {} + Node::Whitespace => {} } } -- cgit v1.2.3