From 488e9552fd10ee56cc5bd0e19aa3d4d2579a0393 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Tue, 18 Feb 2025 17:02:41 +0000 Subject: [PATCH] refactor: use type aliases instead of fully writing out the type --- helix-term/src/ui/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 0761034c..d4fe8377 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -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()