From 97714e51a71efb14a0e56c905ab9ea7cb6f53700 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 28 May 2024 08:26:30 -0400 Subject: [PATCH] fix compile failure for legacy::Error --- src/client/legacy/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()