mirror of
https://git.proxmox.com/git/proxmox-backup-qemu
synced 2025-10-04 16:07:54 +00:00
warnings and clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
947bfbf425
commit
3adc6a1787
2
build.rs
2
build.rs
@ -16,7 +16,7 @@ fn main() {
|
|||||||
|
|
||||||
cbindgen::Builder::new()
|
cbindgen::Builder::new()
|
||||||
.with_language(cbindgen::Language::C)
|
.with_language(cbindgen::Language::C)
|
||||||
.with_crate(&crate_dir)
|
.with_crate(crate_dir)
|
||||||
.with_header(header)
|
.with_header(header)
|
||||||
.with_include_guard("PROXMOX_BACKUP_QEMU_H")
|
.with_include_guard("PROXMOX_BACKUP_QEMU_H")
|
||||||
.exclude_item("wakeup_callback")
|
.exclude_item("wakeup_callback")
|
||||||
|
@ -759,7 +759,7 @@ pub extern "C" fn proxmox_backup_finish_async(
|
|||||||
pub extern "C" fn proxmox_backup_disconnect(handle: *mut ProxmoxBackupHandle) {
|
pub extern "C" fn proxmox_backup_disconnect(handle: *mut ProxmoxBackupHandle) {
|
||||||
let task = handle as *mut Arc<BackupTask>;
|
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
|
// Simple interface to restore data
|
||||||
|
@ -252,7 +252,7 @@ impl RestoreTask {
|
|||||||
let info = ImageAccessInfo {
|
let info = ImageAccessInfo {
|
||||||
archive_size,
|
archive_size,
|
||||||
_archive_name: archive_name,
|
_archive_name: archive_name,
|
||||||
/// useful to debug
|
// useful to debug
|
||||||
reader,
|
reader,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user