From be183d460992434c3ec1b8cc053ec03eef179b2e Mon Sep 17 00:00:00 2001 From: Erlend Langseth <3rlendhl@gmail.com> Date: Sat, 14 May 2022 11:26:26 +0200 Subject: [PATCH] Fix compilation error on Windows --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }