From: Fabian Grünbichler Date: Mon, 24 Oct 2022 10:10:19 +0000 (+0200) Subject: clippy fixes X-Git-Tag: v2.3.1~71 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4b3c010fd5f19e3cd669a44554e0b5964324ce14;p=proxmox-backup.git clippy fixes the dropped .into() is guarded by the bumped build-dependency on proxmox-sys 0.4.1, the missing Eq is a new clippy lint. Signed-off-by: Fabian Grünbichler --- diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 15ea80cd..865a7b55 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -169,7 +169,7 @@ pub enum ChunkOrder { } #[api] -#[derive(PartialEq, Serialize, Deserialize)] +#[derive(PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "lowercase")] /// The level of syncing that is done when writing into a datastore. pub enum DatastoreFSyncLevel { diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs index 6df5d709..2b615991 100644 --- a/pbs-client/src/pxar/create.rs +++ b/pbs-client/src/pxar/create.rs @@ -325,7 +325,7 @@ impl Archiver { oflags | noatime, Mode::empty(), ) { - Ok(fd) => Ok(Some(fd.into())), + Ok(fd) => Ok(Some(fd)), Err(Errno::ENOENT) => { if existed { self.report_vanished_file()?;