No longer require fmt::Debug when not necessary (#1158)

This commit is contained in:
Pierre Krieger
2019-06-04 13:08:37 +02:00
committed by GitHub
parent e56c4c10ed
commit 603fd5744f
3 changed files with 9 additions and 14 deletions

View File

@ -44,8 +44,8 @@ where
impl<A, B> std::error::Error for EitherError<A, B>
where
A: fmt::Debug + std::error::Error,
B: fmt::Debug + std::error::Error
A: std::error::Error,
B: std::error::Error
{
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self {