mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-04 05:31:18 +00:00
tools: fs: rename CreateOptions::empty to new
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
47fdbc6a32
commit
e59456e0b7
@ -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<P: AsRef<Path>>(
|
||||
/// create_path(
|
||||
/// "/var/lib/mytool/wwwdata",
|
||||
/// None,
|
||||
/// Some(CreateOptions::empty()
|
||||
/// Some(CreateOptions::new()
|
||||
/// .perm(Mode::from_bits(0o777).unwrap())
|
||||
/// .owner(Uid::from_raw(33))
|
||||
/// ),
|
||||
|
Loading…
Reference in New Issue
Block a user