From 8e700cf37ba51a35b1a8afefbfa4f0fed69aeb92 Mon Sep 17 00:00:00 2001 From: Paul Woolcock Date: Tue, 5 Mar 2019 15:16:42 -0500 Subject: [PATCH] update to 0.18.2 --- Cargo.toml | 2 +- src/errors.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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, }