]> git.proxmox.com Git - proxmox-backup.git/commitdiff
clippy fixes
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 24 Oct 2022 10:10:19 +0000 (12:10 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 24 Oct 2022 10:10:19 +0000 (12:10 +0200)
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 <f.gruenbichler@proxmox.com>
pbs-api-types/src/datastore.rs
pbs-client/src/pxar/create.rs

index 15ea80cddd5ff6d5c898385907a0d0e4adfa3b44..865a7b5526a2ab9d6bdeea41a64491511ab922af 100644 (file)
@@ -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 {
index 6df5d70908345c21b4e59f020a0de51de9fe0573..2b615991898c33165f105d3728aa26ff4ec0b1e7 100644 (file)
@@ -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()?;