diff options
author | Vika <vika@fireburn.ru> | 2024-01-29 07:08:21 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-01-29 07:08:21 +0300 |
commit | d36014200549cf73a7f22c6f94fb15bec17823e8 (patch) | |
tree | 6e56f912219c5d20e2768b1f016f23fff22fe83e /src/webmentions | |
parent | ed51d48f7353a5ceefa798ded52d3af465d4d0ec (diff) | |
download | kittybox-d36014200549cf73a7f22c6f94fb15bec17823e8.tar.zst |
lint: no extra whitespace on line endings
Diffstat (limited to 'src/webmentions')
-rw-r--r-- | src/webmentions/check.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<str> + std::fmt::Debug, base_url: &url continue 'nodes_loop; } } - // if it's not `<a href="...">`, skip it + // if it's not `<a href="...">`, 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<str> + std::fmt::Debug, base_url: &url } } } - + } } |