From d36014200549cf73a7f22c6f94fb15bec17823e8 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 29 Jan 2024 07:08:21 +0300 Subject: lint: no extra whitespace on line endings --- src/webmentions/check.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/webmentions') diff --git a/src/webmentions/check.rs b/src/webmentions/check.rs index f7322f7..6dc6a25 100644 --- a/src/webmentions/check.rs +++ b/src/webmentions/check.rs @@ -90,7 +90,7 @@ pub fn check_mention(document: impl AsRef + std::fmt::Debug, base_url: &url continue 'nodes_loop; } } - // if it's not ``, skip it + // if it's not ``, skip it if attr.name.local != *"href" { continue; } // Be forgiving in parsing URLs, and resolve them against the base URL if let Ok(url) = base_url.join(attr.value.as_ref()) { @@ -105,7 +105,7 @@ pub fn check_mention(document: impl AsRef + std::fmt::Debug, base_url: &url } } } - + } } -- cgit 1.4.1