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)) /// ),