mirror of
https://github.com/eza-community/eza.git
synced 2026-10-12 02:13:29 +00:00
chore: remove some leftover, unused code
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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(", "))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user