]> git.proxmox.com Git - proxmox-backup.git/commitdiff
rustfmt
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 19 Aug 2022 11:38:46 +0000 (13:38 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 19 Aug 2022 11:38:46 +0000 (13:38 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
pbs-client/src/pxar/extract.rs
proxmox-backup-client/src/main.rs

index 206e105ea907bb2fcca56b070648faed6ab74c46..33f1ebee283ce5a3b13dcff8d0609911bb14a98e 100644 (file)
@@ -409,13 +409,8 @@ impl Extractor {
         }
         let mut file = unsafe {
             std::fs::File::from_raw_fd(
-                nix::fcntl::openat(
-                    parent,
-                    file_name,
-                    oflags,
-                    Mode::from_bits(0o600).unwrap(),
-                )
-                .map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
+                nix::fcntl::openat(parent, file_name, oflags, Mode::from_bits(0o600).unwrap())
+                    .map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
             )
         };
 
@@ -472,13 +467,8 @@ impl Extractor {
         }
         let mut file = tokio::fs::File::from_std(unsafe {
             std::fs::File::from_raw_fd(
-                nix::fcntl::openat(
-                    parent,
-                    file_name,
-                    oflags,
-                    Mode::from_bits(0o600).unwrap(),
-                )
-                .map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
+                nix::fcntl::openat(parent, file_name, oflags, Mode::from_bits(0o600).unwrap())
+                    .map_err(|err| format_err!("failed to create file {:?}: {}", file_name, err))?,
             )
         });
 
index 042802b40ed667edab21c2478eb27aefe138db15..06fdab4fb64e1c5379c9b32d6bd90a2cce6adaf1 100644 (file)
@@ -1237,14 +1237,14 @@ We do not extract '.pxar' archives when writing to standard output.
 )]
 /// Restore backup repository.
 async fn restore(
-        param: Value,
-        allow_existing_dirs: bool,
-        ignore_acls: bool,
-        ignore_xattrs: bool,
-        ignore_ownership: bool,
-        ignore_permissions: bool,
-        overwrite: bool
-    ) -> Result<Value, Error> {
+    param: Value,
+    allow_existing_dirs: bool,
+    ignore_acls: bool,
+    ignore_xattrs: bool,
+    ignore_ownership: bool,
+    ignore_permissions: bool,
+    overwrite: bool,
+) -> Result<Value, Error> {
     let repo = extract_repository_from_value(&param)?;
 
     let archive_name = json::required_string_param(&param, "archive-name")?;