impl fmt::Display for EnvError
@@ -10,6 +10,7 @@ use futures::{future, Future, FutureExt, TryFutureExt};
use http::Request;
use serde::ser::SerializeStruct;
use serde::{Deserialize, Serialize, Serializer};
+use std::fmt;
use url::Url;
#[derive(Clone, PartialEq)]
@@ -61,6 +62,12 @@ impl EnvError {
}
}
+impl fmt::Display for EnvError {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+ write!(f, "{}", self.message())
+ }
+}
+
impl Serialize for EnvError {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
