diff --git a/src/client/legacy/client.rs b/src/client/legacy/client.rs index 6ed7c0f..53cd714 100644 --- a/src/client/legacy/client.rs +++ b/src/client/legacy/client.rs @@ -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()