diff options
author | Vika <vika@fireburn.ru> | 2024-08-26 14:08:07 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2024-08-26 14:36:57 +0300 |
commit | c79e950ca22c7a957c11e510700664327b042115 (patch) | |
tree | 1387e5931dd08cea0d21b2770964e169d7043905 /src/webmentions | |
parent | 1a4a9b85b9bf9ae8650a2cd68416476c7d1770b3 (diff) | |
download | kittybox-c79e950ca22c7a957c11e510700664327b042115.tar.zst |
Appease most clippy warnings
The warnings only remain in places where I need them to remain, because I either need a reminder to implement something, or I need to refactor and simplify the code in question.
Diffstat (limited to 'src/webmentions')
-rw-r--r-- | src/webmentions/check.rs | 4 | ||||
-rw-r--r-- | src/webmentions/check/rcdom.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/webmentions/check.rs b/src/webmentions/check.rs index 178c008..683cc6b 100644 --- a/src/webmentions/check.rs +++ b/src/webmentions/check.rs @@ -38,7 +38,7 @@ pub fn check_mention(document: impl AsRef<str> + std::fmt::Debug, base_url: &url if let PropertyValue::Url(url) = val { if url == link { tracing::debug!("URL matches! Webmention is valid"); - return Ok(Some((interaction_type, serde_json::to_value(&*item).unwrap()))) + return Ok(Some((interaction_type, serde_json::to_value(item).unwrap()))) } } } @@ -101,7 +101,7 @@ pub fn check_mention(document: impl AsRef<str> + std::fmt::Debug, base_url: &url } } if is_mention { - return Ok(Some((MentionType::Mention, serde_json::to_value(&*item).unwrap()))); + return Ok(Some((MentionType::Mention, serde_json::to_value(item).unwrap()))); } } } diff --git a/src/webmentions/check/rcdom.rs b/src/webmentions/check/rcdom.rs index 549610f..08408a2 100644 --- a/src/webmentions/check/rcdom.rs +++ b/src/webmentions/check/rcdom.rs @@ -7,7 +7,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![allow(missing_docs)] +#![allow(missing_docs, dead_code)] //! A simple reference-counted DOM. //! |