[pve-devel] [PATCH v2 proxmox 3/7] sys: fs: use inline formatting for bail! macro

Lukas Wagner l.wagner at proxmox.com
Thu Sep 28 13:50:08 CEST 2023


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 proxmox-sys/src/fs/mod.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxmox-sys/src/fs/mod.rs b/proxmox-sys/src/fs/mod.rs
index 8d790a4..f54aaf6 100644
--- a/proxmox-sys/src/fs/mod.rs
+++ b/proxmox-sys/src/fs/mod.rs
@@ -71,12 +71,12 @@ impl CreateOptions {
         let mode: stat::Mode = self.perm.unwrap_or(stat::Mode::from_bits_truncate(0o644));
 
         if let Err(err) = stat::fchmod(fd, mode) {
-            bail!("fchmod {:?} failed: {}", path, err);
+            bail!("fchmod {path:?} failed: {err}");
         }
 
         if self.owner.is_some() || self.group.is_some() {
             if let Err(err) = fchown(fd, self.owner, self.group) {
-                bail!("fchown {:?} failed: {}", path, err);
+                bail!("fchown {path:?} failed: {err}");
             }
         }
         Ok(())
-- 
2.39.2






More information about the pve-devel mailing list