mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix fs-lock lib.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
80bc78de09
commit
5f0edf09cd
1 changed files with 3 additions and 1 deletions
|
@ -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<Box<Path>>) -> Self {
|
||||
#[cfg(feature = "tracing")]
|
||||
self.1 = Some(path.into());
|
||||
{
|
||||
self.1 = Some(path.into());
|
||||
}
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue