From 996ac309ab33aea63dbcd762f2c85e6836d73c5f Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 10 Jan 2025 16:32:11 +0100 Subject: Remove some unnecessary #[allow(dead_code)] --- tests/utils/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/utils/mod.rs') diff --git a/tests/utils/mod.rs b/tests/utils/mod.rs index ac90bff..c392b14 100644 --- a/tests/utils/mod.rs +++ b/tests/utils/mod.rs @@ -1,11 +1,10 @@ -#![allow(dead_code)] - use select::document::Document; use select::node::Node; use select::predicate::Name; use select::predicate::Predicate; /// Return the href attribute content for the closest anchor found by `text`. +#[allow(dead_code)] pub fn get_link_from_text(document: &Document, text: &str) -> Option { let a_elem = document .find(Name("a").and(|x: &Node| x.children().any(|x| x.text() == text))) @@ -14,6 +13,7 @@ pub fn get_link_from_text(document: &Document, text: &str) -> Option { } /// Return the href attributes of all links that start with the specified `prefix`. +#[allow(dead_code)] pub fn get_link_hrefs_with_prefix(document: &Document, prefix: &str) -> Vec { let mut vec: Vec = Vec::new(); -- cgit v1.2.3