diff --git a/src/machine/streams.rs b/src/machine/streams.rs index 9c903c7e..58d685a0 100644 --- a/src/machine/streams.rs +++ b/src/machine/streams.rs @@ -328,10 +328,7 @@ impl Write for HttpWriteStream { } #[cfg(feature = "http")] -impl HttpWriteStream { - // TODO why is this suddenly dead code and should it be used somewhere? - // Should this be impl Drop for HttpWriteStream? - #[allow(dead_code)] +impl Drop for HttpWriteStream { fn drop(&mut self) { let headers = unsafe { std::mem::ManuallyDrop::take(&mut self.headers) }; let buffer = unsafe { std::mem::ManuallyDrop::take(&mut self.buffer) };