chore: remove some leftover, unused code

This commit is contained in:
ariasuni
2026-03-08 03:20:56 +01:00
parent 898bae3813
commit c0fe456ba5
2 changed files with 0 additions and 20 deletions
-10
View File
@@ -31,9 +31,6 @@ pub type ino_t = u64;
#[allow(unused)]
pub type nlink_t = u64;
/// The type of a file’s timestamp (creation, modification, access, etc).
pub type time_t = i64;
/// The type of a file’s user ID.
#[allow(unused)]
pub type uid_t = u32;
@@ -206,13 +203,6 @@ pub struct DeviceIDs {
pub minor: u32,
}
/// One of a file’s timestamps (created, accessed, or modified).
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Time {
pub seconds: time_t,
pub nanoseconds: time_t,
}
/// A file’s status in a Git repository. Whether a file is in a repository or
/// not is handled by the Git module, rather than having a “null” variant in
/// this enum.
-10
View File
@@ -84,13 +84,3 @@ impl fmt::Display for OptionsError {
};
}
}
/// A list of legal choices for an argument-taking option.
#[derive(PartialEq, Eq, Debug)]
pub struct Choices(pub &'static [&'static str]);
impl fmt::Display for Choices {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "choices: {}", self.0.join(", "))
}
}