summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2019-03-05 15:16:42 -0500
committerPaul Woolcock <paul@woolcock.us>2019-03-05 15:22:21 -0500
commit8e700cf37ba51a35b1a8afefbfa4f0fed69aeb92 (patch)
tree00f873da5530200125631830466c51529e86e5ca
parentb7b8379e10e567485177e4269dd4e249d8bef600 (diff)
update to 0.18.2
-rw-r--r--Cargo.toml2
-rw-r--r--src/errors.rs3
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 <theaaronepower@gmail.com>", "Paul Woolcock <paul@woolcock.us>"]
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,
}