diff options
author | Luca Casonato <hello@lcas.dev> | 2022-04-20 22:53:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 22:53:56 +0200 |
commit | 8b258070542a81d217226fe832b26d81cf20113d (patch) | |
tree | 5650bbc0ef9967430b45471b4ffdad9159725f9d /serde_v8/magic/buffer.rs | |
parent | 2a93c134dc93d70b5f6ea9d417c88207661884d5 (diff) |
feat(ext/http): stream auto resp body compression (#14325)
This commit adds support for auto response body compression for
streaming bodies.
Diffstat (limited to 'serde_v8/magic/buffer.rs')
-rw-r--r-- | serde_v8/magic/buffer.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/serde_v8/magic/buffer.rs b/serde_v8/magic/buffer.rs index 3a8c9499b..a0a1c974b 100644 --- a/serde_v8/magic/buffer.rs +++ b/serde_v8/magic/buffer.rs @@ -29,14 +29,6 @@ impl MagicBuffer { pub fn new_temp(vec: Vec<u8>) -> Self { MagicBuffer::Temp(vec) } - - // TODO(@littledivy): Temporary, this needs a refactor. - pub fn to_temp(self) -> Vec<u8> { - match self { - MagicBuffer::Temp(vec) => vec, - _ => unreachable!(), - } - } } impl Clone for MagicBuffer { |