mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
chore(cli): Migrate to Derive API
Change the definition of CLI from the Builder API to the Derive API.
This commit is contained in:
+10
@@ -23,6 +23,16 @@ pub enum FileTime {
|
||||
Changed,
|
||||
}
|
||||
|
||||
impl From<crate::cli::FileTime> for FileTime {
|
||||
fn from(time: crate::cli::FileTime) -> Self {
|
||||
match time {
|
||||
crate::cli::FileTime::Modified => Self::Modified,
|
||||
crate::cli::FileTime::Accessed => Self::Accessed,
|
||||
crate::cli::FileTime::Changed => Self::Changed,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn build_node(
|
||||
dir: PathBuf,
|
||||
|
||||
Reference in New Issue
Block a user