mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-05-19 04:18:42 +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;
|
||||
mod path;
|
||||
pub(crate) use self::path::Path;
|
||||
#[cfg(feature = "reqwest")]
|
||||
mod errors;
|
||||
#[cfg(feature = "reqwest")]
|
||||
pub use self::errors::{Error, ErrorKind};
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ pub struct Error {
|
|||
#[derive(Debug)]
|
||||
pub enum ErrorKind {
|
||||
Url(url::ParseError),
|
||||
#[cfg(feature = "reqwest")]
|
||||
Http(reqwest::Error),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue