Address clippy warnings

This commit is contained in:
topjohnwu
2025-01-10 20:33:33 +08:00
committed by John Wu
parent 82d1d19267
commit a1b2830c06
6 changed files with 40 additions and 48 deletions

View File

@@ -1031,8 +1031,9 @@ pub fn parse_mount_info(pid: &str) -> Vec<MountInfo> {
res
}
#[derive(Clone)]
#[derive(Default, Clone)]
pub enum SharedFd {
#[default]
None,
Shared(Arc<OwnedFd>),
}
@@ -1058,9 +1059,3 @@ impl SharedFd {
}
}
}
impl Default for SharedFd {
fn default() -> Self {
SharedFd::None
}
}