From afd4eff818933ff0bef8d03dc3cd34b50b68a18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 12 Dec 2022 13:05:39 +0100 Subject: [PATCH] lint fix: explicitly drop Box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit else this complains about a missing usage of the return value.. Signed-off-by: Fabian Grünbichler --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bdd162b..b3c7b85 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1193,7 +1193,7 @@ pub extern "C" fn proxmox_import_state(buf: *const u8, buf_size: usize) { pub extern "C" fn proxmox_free_state_buf(buf: *mut u8) { if !buf.is_null() { unsafe { - Box::from_raw(buf); + drop(Box::from_raw(buf)); } } }