From f5d1d02e65cc9bdefaa17524156c1fb964e579e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 5 Oct 2021 22:35:34 +0200 Subject: [PATCH] fix clippy --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 50cc6fe..d6c83f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -258,7 +258,7 @@ async fn render( links.push( [ ("source".to_string(), normalized_path.clone()), - ("target".to_string(), link.clone()), + ("target".to_string(), link), ] .iter() .cloned() @@ -472,7 +472,7 @@ fn parse_garden>(text: S) -> anyhow::Result { if let Some(Event::Start(Tag::Link(_, dest, _))) = &last_nontext_event { if let Event::Text(str) = &event { - if str.starts_with("#") { + if str.starts_with('#') { tags.push(dest.to_string()); } }