diff --git a/crates/fs-lock/src/lib.rs b/crates/fs-lock/src/lib.rs index 88d1cff7..7a0fd8f7 100644 --- a/crates/fs-lock/src/lib.rs +++ b/crates/fs-lock/src/lib.rs @@ -84,7 +84,9 @@ impl FileLock { /// Set path to the file for logging on unlock error, if feature tracing is enabled pub fn set_file_path(mut self, path: impl Into>) -> Self { #[cfg(feature = "tracing")] - self.1 = Some(path.into()); + { + self.1 = Some(path.into()); + } self } }