fix reqwest feature being mandatory

This commit is contained in:
Daniel Bulant 2025-08-31 14:21:14 +02:00 committed by GitHub
parent ec7b2fd986
commit e889cf1855
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ pub struct Error {
#[derive(Debug)] #[derive(Debug)]
pub enum ErrorKind { pub enum ErrorKind {
Url(url::ParseError), Url(url::ParseError),
#[cfg(feature = "reqwest")]
Http(reqwest::Error), Http(reqwest::Error),
} }

View file

@ -249,7 +249,7 @@ fn test_robots_txt_14() {
robot_test_simple(doc, good, bad); robot_test_simple(doc, good, bad);
} }
#[cfg(feature = "http")] #[cfg(feature = "reqwest")]
#[test] #[test]
fn test_robots_txt_read() { fn test_robots_txt_read() {
use reqwest::{Client, Request}; use reqwest::{Client, Request};