]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
files: remove filecontainer drop trait
authorVictor Julien <vjulien@oisf.net>
Mon, 23 Jan 2023 08:13:44 +0000 (09:13 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 23 Jan 2023 08:19:54 +0000 (09:19 +0100)
In preparation of it becoming impossible to use due to the free
function getting an cfg argument.

rust/src/filecontainer.rs

index 7ea3221a2f59bd868c8135ef809d45de4df16d4f..96b0f6b92cf0254745bc21fe3ebafa53da79fb36 100644 (file)
@@ -54,12 +54,6 @@ pub struct FileContainer {
     tail: * mut c_void,
 }
 
-impl Drop for FileContainer {
-    fn drop(&mut self) {
-        self.free();
-    }
-}
-
 impl Default for FileContainer {
     fn default() -> Self { Self {
         head: ptr::null_mut(),