From e12cc58bd80b8fdf3837928694c20ab9001a5cf2 Mon Sep 17 00:00:00 2001 From: gennyble Date: Wed, 27 Dec 2023 17:21:08 -0600 Subject: fix warnings in tests --- tests/nyble_pages.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/nyble_pages.rs b/tests/nyble_pages.rs index 2c99bc2..2a8fc75 100644 --- a/tests/nyble_pages.rs +++ b/tests/nyble_pages.rs @@ -3,7 +3,7 @@ use cutie::Html; #[test] fn pares_homepage() { let str = std::fs::read_to_string("tests/nyble.html").unwrap(); - let html = Html::parse(&str); + let _html = Html::parse(str); } fn test_roundtrip(raw: &str) { @@ -25,7 +25,7 @@ fn homepage_roundtrip() { #[test] fn parses_grass() { let str = std::fs::read_to_string("tests/touching_grass.html").unwrap(); - let html = Html::parse(&str); + let _html = Html::parse(str); } #[test] -- cgit 1.4.1-3-g733a5