fix clippy again

This commit is contained in:
Bennet Bleßmann
2024-07-06 23:18:35 +02:00
parent 89c1ea4232
commit 496e4e9f56
2 changed files with 4 additions and 0 deletions

View File

@@ -323,6 +323,9 @@ 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)]
fn drop(&mut self) {
let headers = unsafe { std::mem::ManuallyDrop::take(&mut self.headers) };
let buffer = unsafe { std::mem::ManuallyDrop::take(&mut self.buffer) };