tools: fs: rename CreateOptions::empty to new

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-08-21 12:01:43 +02:00
parent 47fdbc6a32
commit e59456e0b7

View File

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