mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16: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::{
|
use std::{
|
||||||
fs::File,
|
fs::File,
|
||||||
io::{self, IoSlice, IoSliceMut, SeekFrom},
|
io::{self, IoSlice, IoSliceMut, SeekFrom},
|
||||||
ops, path::Path,
|
ops,
|
||||||
|
path::Path,
|
||||||
};
|
};
|
||||||
|
|
||||||
use fs4::fs_std::FileExt;
|
use fs4::fs_std::FileExt;
|
||||||
|
|
||||||
/// A locked file.
|
/// A locked file.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct FileLock(
|
pub struct FileLock(File, #[cfg(feature = "tracing")] Option<Box<Path>>);
|
||||||
File,
|
|
||||||
#[cfg(feature = "tracing")]
|
|
||||||
Option<Box<Path>>,
|
|
||||||
);
|
|
||||||
|
|
||||||
impl FileLock {
|
impl FileLock {
|
||||||
#[cfg(not(feature = "tracing"))]
|
#[cfg(not(feature = "tracing"))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue