Skip to content

Commit 3e418b1

Browse files
authored
Merge pull request #992 from dtolnay/errorsource
Fix message duplication between error Display and source()
2 parents d9447c3 + 7eeb169 commit 3e418b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl serde::de::StdError for Error {
319319
#[cfg(feature = "std")]
320320
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
321321
match &self.err.code {
322-
ErrorCode::Io(err) => Some(err),
322+
ErrorCode::Io(err) => err.source(),
323323
_ => None,
324324
}
325325
}

0 commit comments

Comments
 (0)