From 3fd900d2b2b052c25ed1df02692478a086280c3d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 22 Jul 2021 09:44:17 +0200 Subject: [PATCH] tools fs: rust fmt Signed-off-by: Thomas Lamprecht --- proxmox/src/tools/fs.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proxmox/src/tools/fs.rs b/proxmox/src/tools/fs.rs index 1a2a51fc..6ae4c8af 100644 --- a/proxmox/src/tools/fs.rs +++ b/proxmox/src/tools/fs.rs @@ -211,11 +211,11 @@ pub fn atomic_open_or_create_file>( match nix::fcntl::open(path, oflag, stat::Mode::empty()) { Ok(fd) => return Ok(unsafe { File::from_raw_fd(fd) }), Err(err) => { - if err.not_found() { - // fall thrue - try to create the file - } else { - bail!("open {:?} failed - {}", path, err); - } + if err.not_found() { + // fall thrue - try to create the file + } else { + bail!("open {:?} failed - {}", path, err); + } } }