]> Repositorios git - scryer-prolog.git/commitdiff
fix clippy again
authorBennet Bleßmann <[email protected]>
Sat, 6 Jul 2024 21:18:35 +0000 (23:18 +0200)
committerBennet Bleßmann <[email protected]>
Sun, 7 Jul 2024 09:31:36 +0000 (11:31 +0200)
src/machine/streams.rs
src/macros.rs

index ad09e8581e202b9ea91f86c67010ed386821c0fd..61191205aa3fbdf2a9a9cd664fd858f4c2d3db36 100644 (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) };
index 54fcaa63d2bc110bfcef7593d19e8bf557cb6e63..ca55651348956d0e851e0e644e0a1c0dd2b91d60 100644 (file)
@@ -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)