Skip to content

Commit 97714e5

Browse files
committed
fix compile failure for legacy::Error
1 parent b24f563 commit 97714e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/legacy/client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ impl fmt::Debug for Error {
15691569
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
15701570
let mut f = f.debug_tuple("hyper_util::client::legacy::Error");
15711571
f.field(&self.kind);
1572-
if let Some(ref cause) = self.cause {
1572+
if let Some(ref cause) = self.source {
15731573
f.field(cause);
15741574
}
15751575
f.finish()

0 commit comments

Comments
 (0)