fix(http): Fix commit fac3d70c0b
The new From<Chunk> for Bytes uses self instead of chunk in its implementation of From::from. Change it to chunk to fix the build.
This commit is contained in:
@@ -45,7 +45,7 @@ impl From<Bytes> for Chunk {
|
|||||||
|
|
||||||
impl From<Chunk> for Bytes {
|
impl From<Chunk> for Bytes {
|
||||||
fn from(chunk: Chunk) -> Bytes {
|
fn from(chunk: Chunk) -> Bytes {
|
||||||
match self.0 {
|
match chunk.0 {
|
||||||
Inner::Shared(bytes) => bytes,
|
Inner::Shared(bytes) => bytes,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user