From 1e7467ee11bd783b37e0788e301e2290e8797789 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 18 Dec 2019 13:41:17 +0100 Subject: [PATCH] cleanup Signed-off-by: Wolfgang Bumiller --- proxmox-tools/src/fs.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/proxmox-tools/src/fs.rs b/proxmox-tools/src/fs.rs index 98cd3d26..6661c952 100644 --- a/proxmox-tools/src/fs.rs +++ b/proxmox-tools/src/fs.rs @@ -226,12 +226,7 @@ pub fn create_dir>(path: P, options: CreateOptions) -> Result<(), .unwrap_or(stat::Mode::from_bits_truncate(0o770)); let path = path.as_ref(); - - match nix::unistd::mkdir(path, mode) { - Ok(()) => {} - err => return err, - } - + nix::unistd::mkdir(path, mode)?; unistd::chown(path, options.owner, options.group)?; Ok(())