diff --git a/src/model/errors.rs b/src/model/errors.rs index dd631eb..2f97123 100644 --- a/src/model/errors.rs +++ b/src/model/errors.rs @@ -8,6 +8,7 @@ pub struct Error { #[derive(Debug)] pub enum ErrorKind { Url(url::ParseError), + #[cfg(feature = "reqwest")] Http(reqwest::Error), } diff --git a/tests/test_lib.rs b/tests/test_lib.rs index 88f0367..f75071f 100644 --- a/tests/test_lib.rs +++ b/tests/test_lib.rs @@ -249,7 +249,7 @@ fn test_robots_txt_14() { robot_test_simple(doc, good, bad); } -#[cfg(feature = "http")] +#[cfg(feature = "reqwest")] #[test] fn test_robots_txt_read() { use reqwest::{Client, Request};