refactor: use type aliases instead of fully writing out the type

This commit is contained in:
Nikita Revenco 2025-02-18 17:02:41 +00:00
parent fae93aa308
commit 488e9552fd

View file

@ -654,7 +654,7 @@ pub fn file_explorer(
let columns = [PickerColumn::new(
"path",
|(path, is_dir): &(PathBuf, bool), (root, directory_style): &(PathBuf, Style)| {
|(path, is_dir): &ExplorerItem, (root, directory_style): &ExplorerData| {
let name = path.strip_prefix(root).unwrap_or(path).to_string_lossy();
if *is_dir {
Span::styled(format!("{}/", name), *directory_style).into()