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")] #[cfg(feature = "http")]
impl HttpWriteStream { 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) { fn drop(&mut self) {
let headers = unsafe { std::mem::ManuallyDrop::take(&mut self.headers) }; let headers = unsafe { std::mem::ManuallyDrop::take(&mut self.headers) };
let buffer = unsafe { std::mem::ManuallyDrop::take(&mut self.buffer) }; let buffer = unsafe { std::mem::ManuallyDrop::take(&mut self.buffer) };

View File

@@ -324,6 +324,7 @@ macro_rules! match_untyped_arena_ptr {
($ptr:expr, $( ($(ArenaHeaderTag::$tag:tt)|+, $n:ident) => $code:block $(,)?)+ $(_ => $misc_code:expr $(,)?)?) => ({ ($ptr:expr, $( ($(ArenaHeaderTag::$tag:tt)|+, $n:ident) => $code:block $(,)?)+ $(_ => $misc_code:expr $(,)?)?) => ({
let ptr_id = $ptr; let ptr_id = $ptr;
#[allow(clippy::toplevel_ref_arg)]
match ptr_id.get_tag() { match ptr_id.get_tag() {
$($(match_untyped_arena_ptr_pat!($tag) => { $($(match_untyped_arena_ptr_pat!($tag) => {
match_untyped_arena_ptr_pat_body!(ptr_id, $tag, $n, $code) match_untyped_arena_ptr_pat_body!(ptr_id, $tag, $n, $code)