mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-05-24 12:35:49 +00:00
gate errors module behind reqwest
This commit is contained in:
parent
165de042c4
commit
dd658cfc47
2 changed files with 2 additions and 1 deletions
|
|
@ -15,5 +15,7 @@ mod fetched_robots_txt;
|
||||||
pub use self::robots_txt::RobotsTxt;
|
pub use self::robots_txt::RobotsTxt;
|
||||||
mod path;
|
mod path;
|
||||||
pub(crate) use self::path::Path;
|
pub(crate) use self::path::Path;
|
||||||
|
#[cfg(feature = "reqwest")]
|
||||||
mod errors;
|
mod errors;
|
||||||
|
#[cfg(feature = "reqwest")]
|
||||||
pub use self::errors::{Error, ErrorKind};
|
pub use self::errors::{Error, ErrorKind};
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ 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),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue