From dd658cfc479cf8561d55b9f640d6b242a2def47c Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Sun, 31 Aug 2025 14:29:18 +0200 Subject: [PATCH] gate errors module behind reqwest --- src/model.rs | 2 ++ src/model/errors.rs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model.rs b/src/model.rs index bd80ae6..69af561 100644 --- a/src/model.rs +++ b/src/model.rs @@ -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}; diff --git a/src/model/errors.rs b/src/model/errors.rs index 2f97123..dd631eb 100644 --- a/src/model/errors.rs +++ b/src/model/errors.rs @@ -8,7 +8,6 @@ pub struct Error { #[derive(Debug)] pub enum ErrorKind { Url(url::ParseError), - #[cfg(feature = "reqwest")] Http(reqwest::Error), }