fix clippy

master
Tomáš Mládek 2021-10-05 22:35:34 +02:00
parent a2debf5b2c
commit f5d1d02e65
1 changed files with 2 additions and 2 deletions

View File

@ -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<S: AsRef<str>>(text: S) -> anyhow::Result<ParseResult> {
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());
}
}