From 4bce3d76a215b753fcda476a5265041bad0455b2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 18 Dec 2019 10:04:21 +0100 Subject: [PATCH] tools: replace_file, make options not an option... CreateOptions::new() creates an all-None option set anyway Signed-off-by: Wolfgang Bumiller --- proxmox-tools/src/fs.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxmox-tools/src/fs.rs b/proxmox-tools/src/fs.rs index 67f0f9c1..9fd46cb5 100644 --- a/proxmox-tools/src/fs.rs +++ b/proxmox-tools/src/fs.rs @@ -74,9 +74,8 @@ pub fn file_read_firstline>(path: P) -> Result { pub fn replace_file>( path: P, data: &[u8], - options: Option, + options: CreateOptions, ) -> Result<(), Error> { - let options = options.unwrap_or_default(); file_set_contents_full( path.as_ref(), data,