diff --git a/src/lib.rs b/src/lib.rs index e223fb3..bb88bdf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -484,8 +484,8 @@ impl FileRotate { open_options.read(true).create(true).append(true); + #[cfg(unix)] if let Some(mode) = self.mode { - #[cfg(unix)] open_options.mode(mode); }