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); + } } }