From 3e12bccac05ef12a29ef963509ab47089f63c2c7 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Mon, 8 Oct 2018 10:22:48 -0700 Subject: [PATCH] refactor(body): use fmt::Debug of Bytes for Chunk --- src/body/chunk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/body/chunk.rs b/src/body/chunk.rs index e5d5aed4..d29b00ca 100644 --- a/src/body/chunk.rs +++ b/src/body/chunk.rs @@ -114,7 +114,7 @@ impl AsRef<[u8]> for Chunk { impl fmt::Debug for Chunk { #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::Debug::fmt(self.as_ref(), f) + fmt::Debug::fmt(&self.bytes, f) } }