5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-02-15 05:57:42 +03:00

more low hanging clippy fruits

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-07-28 10:14:28 +02:00
parent 10dac69391
commit e1ea913522
3 changed files with 7 additions and 9 deletions

View File

@ -298,11 +298,9 @@ impl TapeDriver for VirtualTapeHandle {
let reader = BlockedReader::open(reader)?;
Ok(Box::new(reader))
}
None => {
return Err(BlockReadError::Error(proxmox_lang::io_format_err!(
"drive is empty (no tape loaded)."
)));
}
None => Err(BlockReadError::Error(proxmox_lang::io_format_err!(
"drive is empty (no tape loaded)."
))),
}
}

View File

@ -585,7 +585,7 @@ fn get_file_system_devices(lsblk_info: &[LsblkInfo]) -> Result<HashSet<u64>, Err
}
#[api()]
#[derive(Debug, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum PartitionUsageType {
/// Partition is not used (as far we can tell)
@ -605,7 +605,7 @@ pub enum PartitionUsageType {
}
#[api()]
#[derive(Debug, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum DiskUsageType {
/// Disk is not used (as far we can tell)
@ -1078,7 +1078,7 @@ pub fn create_single_linux_partition(disk: &Disk) -> Result<Disk, Error> {
}
#[api()]
#[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Copy, Clone, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum FileSystemType {
/// Linux Ext4

View File

@ -224,7 +224,7 @@ pub struct SystemdMountSection {
}
#[api()]
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
/// Node Power command type.
pub enum ServiceStartup {