aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils/mod.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2025-01-10 16:23:00 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2025-01-10 16:23:00 +0000
commit4dc634655edac54e9638e8390d89a96e235522c0 (patch)
tree15f8cc8bdb2046a70a5f7552964f1781dfced72c /tests/utils/mod.rs
parentRemove some unnecessary #[allow(dead_code)] (diff)
downloadminiserve-4dc634655edac54e9638e8390d89a96e235522c0.tar.gz
miniserve-4dc634655edac54e9638e8390d89a96e235522c0.zip
Reorganize imports to be more consistent
Diffstat (limited to '')
-rw-r--r--tests/utils/mod.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/utils/mod.rs b/tests/utils/mod.rs
index c392b14..792b070 100644
--- a/tests/utils/mod.rs
+++ b/tests/utils/mod.rs
@@ -4,7 +4,6 @@ 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<String> {
let a_elem = document
.find(Name("a").and(|x: &Node| x.children().any(|x| x.text() == text)))
@@ -13,7 +12,6 @@ pub fn get_link_from_text(document: &Document, text: &str) -> Option<String> {
}
/// 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<String> {
let mut vec: Vec<String> = Vec::new();