From 496e4e9f56f1f8a956f12126fb8019e4c51a1077 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Sat, 6 Jul 2024 23:18:35 +0200 Subject: [PATCH] fix clippy again --- src/machine/streams.rs | 3 +++ src/macros.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/machine/streams.rs b/src/machine/streams.rs index ad09e858..61191205 100644 --- a/src/machine/streams.rs +++ b/src/machine/streams.rs @@ -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) }; diff --git a/src/macros.rs b/src/macros.rs index 54fcaa63..ca556513 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -324,6 +324,7 @@ macro_rules! match_untyped_arena_ptr { ($ptr:expr, $( ($(ArenaHeaderTag::$tag:tt)|+, $n:ident) => $code:block $(,)?)+ $(_ => $misc_code:expr $(,)?)?) => ({ let ptr_id = $ptr; + #[allow(clippy::toplevel_ref_arg)] match ptr_id.get_tag() { $($(match_untyped_arena_ptr_pat!($tag) => { match_untyped_arena_ptr_pat_body!(ptr_id, $tag, $n, $code) -- 2.54.0