mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-05-19 04:18:42 +00:00
fix reqwest feature being mandatory
This commit is contained in:
parent
ec7b2fd986
commit
e889cf1855
2 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ pub struct Error {
|
|||
#[derive(Debug)]
|
||||
pub enum ErrorKind {
|
||||
Url(url::ParseError),
|
||||
#[cfg(feature = "reqwest")]
|
||||
Http(reqwest::Error),
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in a new issue