run cargo fmt
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
8aa244641d
commit
71bf1a3b12
@ -573,8 +573,9 @@ mod tests {
|
||||
String::try_from(nw_config).unwrap().trim(),
|
||||
r#"
|
||||
iface enp3s0 inet static
|
||||
address 10.0.0.100/16"#.to_string()
|
||||
.trim()
|
||||
address 10.0.0.100/16"#
|
||||
.to_string()
|
||||
.trim()
|
||||
);
|
||||
}
|
||||
|
||||
@ -597,8 +598,9 @@ iface enp3s0 inet static
|
||||
r#"
|
||||
iface enp3s0 inet static
|
||||
address 10.0.0.100/16
|
||||
gateway 10.0.0.1"#.to_string()
|
||||
.trim()
|
||||
gateway 10.0.0.1"#
|
||||
.to_string()
|
||||
.trim()
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -414,7 +414,9 @@ pub fn read_element_status<F: AsRawFd>(file: &mut F) -> Result<MtxStatus, Error>
|
||||
if drive2.element_address == drive.element_address {
|
||||
drive.vendor.clone_from(&drive2.vendor);
|
||||
drive.model.clone_from(&drive2.model);
|
||||
drive.drive_serial_number.clone_from(&drive2.drive_serial_number);
|
||||
drive
|
||||
.drive_serial_number
|
||||
.clone_from(&drive2.drive_serial_number);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1639,9 +1639,7 @@ async fn restore(
|
||||
overwrite_flags.insert(pbs_client::pxar::OverwriteFlags::all());
|
||||
}
|
||||
|
||||
let prelude_path = param["prelude-target"]
|
||||
.as_str()
|
||||
.map(PathBuf::from);
|
||||
let prelude_path = param["prelude-target"].as_str().map(PathBuf::from);
|
||||
|
||||
let options = pbs_client::pxar::PxarExtractOptions {
|
||||
match_list: &[],
|
||||
|
@ -186,12 +186,8 @@ async fn list_files(
|
||||
let accessor = Accessor::new(reader, archive_size).await?;
|
||||
let path = OsStr::from_bytes(&path);
|
||||
|
||||
pbs_client::tools::pxar_metadata_catalog_lookup(
|
||||
accessor,
|
||||
path,
|
||||
Some(&archive_name),
|
||||
)
|
||||
.await
|
||||
pbs_client::tools::pxar_metadata_catalog_lookup(accessor, path, Some(&archive_name))
|
||||
.await
|
||||
}
|
||||
}
|
||||
ExtractPath::VM(file, path) => {
|
||||
|
Loading…
Reference in New Issue
Block a user