From e59456e0b7024945bbe96e60de5d62596b2fa794 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 21 Aug 2019 12:01:43 +0200 Subject: [PATCH] tools: fs: rename CreateOptions::empty to new Signed-off-by: Wolfgang Bumiller --- proxmox-tools/src/fs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-tools/src/fs.rs b/proxmox-tools/src/fs.rs index 0a1d14e8..2fa08e1d 100644 --- a/proxmox-tools/src/fs.rs +++ b/proxmox-tools/src/fs.rs @@ -160,7 +160,7 @@ pub struct CreateOptions { impl CreateOptions { // contrary to Default::default() this is const - pub const fn empty() -> Self { + pub const fn new() -> Self { Self { perm: None, owner: None, @@ -221,7 +221,7 @@ pub fn create_dir_chown>( /// create_path( /// "/var/lib/mytool/wwwdata", /// None, -/// Some(CreateOptions::empty() +/// Some(CreateOptions::new() /// .perm(Mode::from_bits(0o777).unwrap()) /// .owner(Uid::from_raw(33)) /// ),