From 9e1663751412b0b9335ee48398cea3e4506b4766 Mon Sep 17 00:00:00 2001 From: Matthew Dawson Date: Thu, 2 Mar 2017 01:36:46 -0500 Subject: [PATCH] fix(http): Fix commit fac3d70c0b716157ba689ae2b8a0089b6afc9bdc The new From for Bytes uses self instead of chunk in its implementation of From::from. Change it to chunk to fix the build. --- src/http/chunk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/chunk.rs b/src/http/chunk.rs index 512268aa..a8b65940 100644 --- a/src/http/chunk.rs +++ b/src/http/chunk.rs @@ -45,7 +45,7 @@ impl From for Chunk { impl From for Bytes { fn from(chunk: Chunk) -> Bytes { - match self.0 { + match chunk.0 { Inner::Shared(bytes) => bytes, } }