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,