From a1a221066f9867dadbdd2cba21a0738e0a4f07c2 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 23 Jan 2023 09:13:44 +0100 Subject: [PATCH] files: remove filecontainer drop trait In preparation of it becoming impossible to use due to the free function getting an cfg argument. --- rust/src/filecontainer.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rust/src/filecontainer.rs b/rust/src/filecontainer.rs index 7ea3221a2f..96b0f6b92c 100644 --- a/rust/src/filecontainer.rs +++ b/rust/src/filecontainer.rs @@ -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(),