Fix fmt in lib.rs

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2025-02-23 01:23:56 +11:00 committed by GitHub
parent 153fd57e34
commit c44b7775ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"))]