5
0
mirror of git://git.proxmox.com/git/proxmox-backup-qemu.git synced 2025-01-03 05:17:56 +03:00

warnings and clippy fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-01-05 10:43:33 +01:00
parent 947bfbf425
commit 3adc6a1787
3 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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<BackupTask>;
unsafe { Box::from_raw(task) }; // take ownership, drop(task)
drop(unsafe { Box::from_raw(task) }); // take ownership, drop(task)
}
// Simple interface to restore data

View File

@ -252,7 +252,7 @@ impl RestoreTask {
let info = ImageAccessInfo {
archive_size,
_archive_name: archive_name,
/// useful to debug
// useful to debug
reader,
};