From 4dc634655edac54e9638e8390d89a96e235522c0 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 10 Jan 2025 17:23:00 +0100 Subject: Reorganize imports to be more consistent --- tests/utils/mod.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/utils/mod.rs') 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 { 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 { } /// 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