mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix fmt in lib.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
153fd57e34
commit
c44b7775ec
1 changed files with 3 additions and 6 deletions
|
@ -5,18 +5,15 @@
|
|||
use std::{
|
||||
fs::File,
|
||||
io::{self, IoSlice, IoSliceMut, SeekFrom},
|
||||
ops, path::Path,
|
||||
ops,
|
||||
path::Path,
|
||||
};
|
||||
|
||||
use fs4::fs_std::FileExt;
|
||||
|
||||
/// A locked file.
|
||||
#[derive(Debug)]
|
||||
pub struct FileLock(
|
||||
File,
|
||||
#[cfg(feature = "tracing")]
|
||||
Option<Box<Path>>,
|
||||
);
|
||||
pub struct FileLock(File, #[cfg(feature = "tracing")] Option<Box<Path>>);
|
||||
|
||||
impl FileLock {
|
||||
#[cfg(not(feature = "tracing"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue