use super::Icon;
use crate::lib::logic::{ScanPathStat, ScannedToApply};
impl std::fmt::Display for ScanPathStat {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"{} {} | {} {} | {} {} | {} {}",
Icon::ENTRY,
self.relation.select_dir.buf.display(),
Icon::FILE,
self.count_files,
Icon::FOLDER,
self.count_folder,
Icon::EMPTY,
self.count_empty
)
}
}
impl std::fmt::Display for ScannedToApply {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "📊 Stats -> {}", self.stat)
}
}