mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-08 09:47:51 +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 {
|
impl CreateOptions {
|
||||||
// contrary to Default::default() this is const
|
// contrary to Default::default() this is const
|
||||||
pub const fn empty() -> Self {
|
pub const fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
perm: None,
|
perm: None,
|
||||||
owner: None,
|
owner: None,
|
||||||
@ -221,7 +221,7 @@ pub fn create_dir_chown<P: AsRef<Path>>(
|
|||||||
/// create_path(
|
/// create_path(
|
||||||
/// "/var/lib/mytool/wwwdata",
|
/// "/var/lib/mytool/wwwdata",
|
||||||
/// None,
|
/// None,
|
||||||
/// Some(CreateOptions::empty()
|
/// Some(CreateOptions::new()
|
||||||
/// .perm(Mode::from_bits(0o777).unwrap())
|
/// .perm(Mode::from_bits(0o777).unwrap())
|
||||||
/// .owner(Uid::from_raw(33))
|
/// .owner(Uid::from_raw(33))
|
||||||
/// ),
|
/// ),
|
||||||
|
Loading…
Reference in New Issue
Block a user