fix clippy again
This commit is contained in:
@@ -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) };
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user