tape: minor code cleanup

This commit is contained in:
Dietmar Maurer 2020-12-14 16:56:26 +01:00
parent 3f803af00b
commit af07ec8f29

View File

@ -10,7 +10,6 @@ use proxmox::{
section_config::SectionConfigData, section_config::SectionConfigData,
}, },
tools::{ tools::{
Uuid,
time::strftime_local, time::strftime_local,
io::ReadExt, io::ReadExt,
}, },
@ -491,7 +490,7 @@ fn debug_scan(param: Value) -> Result<(), Error> {
} else { } else {
if let Some(name) = PROXMOX_BACKUP_CONTENT_NAME.get(&header.content_magic) { if let Some(name) = PROXMOX_BACKUP_CONTENT_NAME.get(&header.content_magic) {
println!("got content header: {}", name); println!("got content header: {}", name);
println!(" uuid: {}", Uuid::from(header.uuid)); println!(" uuid: {}", header.content_uuid());
println!(" ctime: {}", strftime_local("%c", header.ctime)?); println!(" ctime: {}", strftime_local("%c", header.ctime)?);
println!(" hsize: {}", HumanByte::from(header.size as usize)); println!(" hsize: {}", HumanByte::from(header.size as usize));
println!(" part: {}", header.part_number); println!(" part: {}", header.part_number);