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:
parent
947bfbf425
commit
3adc6a1787
2
build.rs
2
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")
|
||||
|
@ -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
|
||||
|
@ -252,7 +252,7 @@ impl RestoreTask {
|
||||
let info = ImageAccessInfo {
|
||||
archive_size,
|
||||
_archive_name: archive_name,
|
||||
/// useful to debug
|
||||
// useful to debug
|
||||
reader,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user