diff options
Diffstat (limited to 'tests/utils/mod.rs')
-rw-r--r-- | tests/utils/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<String> { 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<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(); |