about summary refs log tree commit diff
path: root/src/webmentions
diff options
context:
space:
mode:
Diffstat (limited to 'src/webmentions')
-rw-r--r--src/webmentions/check.rs4
-rw-r--r--src/webmentions/check/rcdom.rs2
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.
 //!