mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-05-24 12:35:49 +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)]
|
#[derive(Debug)]
|
||||||
pub enum ErrorKind {
|
pub enum ErrorKind {
|
||||||
Url(url::ParseError),
|
Url(url::ParseError),
|
||||||
|
#[cfg(feature = "reqwest")]
|
||||||
Http(reqwest::Error),
|
Http(reqwest::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue