Skip to content

Commit

Permalink
Fix message duplication between error Display and source()
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 5, 2023
1 parent d9447c3 commit 7eeb169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl serde::de::StdError for Error {
#[cfg(feature = "std")]
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
match &self.err.code {
ErrorCode::Io(err) => Some(err),
ErrorCode::Io(err) => err.source(),
_ => None,
}
}
Expand Down

0 comments on commit 7eeb169

Please sign in to comment.