Skip to content

Commit

Permalink
fix compile failure for legacy::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed May 28, 2024
1 parent b24f563 commit 97714e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/legacy/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ impl fmt::Debug for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let mut f = f.debug_tuple("hyper_util::client::legacy::Error");
f.field(&self.kind);
if let Some(ref cause) = self.cause {
if let Some(ref cause) = self.source {
f.field(cause);
}
f.finish()
Expand Down

0 comments on commit 97714e5

Please sign in to comment.