refactor: use type aliases instead of fully writing out the type
This commit is contained in:
parent
fae93aa308
commit
488e9552fd
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue