diff --git a/Cargo.toml b/Cargo.toml index 4fb88da..8e2e849 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "elefren" -version = "0.18.1" +version = "0.18.2" description = "A wrapper around the Mastodon API." authors = ["Aaron Power ", "Paul Woolcock "] license = "MIT/Apache-2.0" diff --git a/src/errors.rs b/src/errors.rs index d33e90c..c98e810 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -94,6 +94,7 @@ impl error::Error for Error { Error::TomlDe(ref e) => e.description(), Error::HeaderStrError(ref e) => e.description(), Error::HeaderParseError(ref e) => e.description(), + #[cfg(feature = "env")] Error::Envy(ref e) => e.description(), Error::Other(ref e) => e, } @@ -134,7 +135,7 @@ from! { #[cfg(feature = "toml")] TomlDeError, TomlDe, HeaderStrError, HeaderStrError, HeaderParseError, HeaderParseError, - EnvyError, Envy, + #[cfg(feature = "env")] EnvyError, Envy, String, Other, }