From 3adc6a17877a6bf19a2d04d5fe1dfe6eb62e1eb7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 5 Jan 2024 10:43:33 +0100 Subject: [PATCH] warnings and clippy fixups Signed-off-by: Wolfgang Bumiller --- build.rs | 2 +- src/lib.rs | 2 +- src/restore.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index f96d123..f80423e 100644 --- a/build.rs +++ b/build.rs @@ -16,7 +16,7 @@ fn main() { cbindgen::Builder::new() .with_language(cbindgen::Language::C) - .with_crate(&crate_dir) + .with_crate(crate_dir) .with_header(header) .with_include_guard("PROXMOX_BACKUP_QEMU_H") .exclude_item("wakeup_callback") diff --git a/src/lib.rs b/src/lib.rs index b3c7b85..02e74f7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -759,7 +759,7 @@ pub extern "C" fn proxmox_backup_finish_async( pub extern "C" fn proxmox_backup_disconnect(handle: *mut ProxmoxBackupHandle) { let task = handle as *mut Arc; - unsafe { Box::from_raw(task) }; // take ownership, drop(task) + drop(unsafe { Box::from_raw(task) }); // take ownership, drop(task) } // Simple interface to restore data diff --git a/src/restore.rs b/src/restore.rs index 052aa9e..0381309 100644 --- a/src/restore.rs +++ b/src/restore.rs @@ -252,7 +252,7 @@ impl RestoreTask { let info = ImageAccessInfo { archive_size, _archive_name: archive_name, - /// useful to debug + // useful to debug reader, };