From aacc4bb8b00f3c17975d51ed024841e8bc48db83 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Mon, 17 Jul 2023 13:12:14 -0700 Subject: [PATCH] fmt --- crates/project_panel/src/project_panel.rs | 12 ++++++------ crates/zed/src/main.rs | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index f8e1b223d3..d97c47a339 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -237,7 +237,8 @@ impl ProjectPanel { cx.observe_global::(|_, cx| { cx.notify(); - }).detach(); + }) + .detach(); let view_id = cx.view_id(); let mut this = Self { @@ -1192,11 +1193,10 @@ impl ProjectPanel { for entry in visible_worktree_entries[entry_range].iter() { let status = git_status_setting.then(|| entry.git_status).flatten(); let is_expanded = expanded_entry_ids.binary_search(&entry.id).is_ok(); - let icon = show_file_icons - .then(|| match entry.kind { - EntryKind::File(_) => FileAssociations::get_icon(&entry.path, cx), - _ => FileAssociations::get_folder_icon(is_expanded, cx), - }); + let icon = show_file_icons.then(|| match entry.kind { + EntryKind::File(_) => FileAssociations::get_icon(&entry.path, cx), + _ => FileAssociations::get_folder_icon(is_expanded, cx), + }); let mut details = EntryDetails { filename: entry diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index 87e00a70c2..901724ae89 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -702,7 +702,8 @@ fn watch_file_types(fs: Arc, cx: &mut AppContext) { }); }) } - }).detach() + }) + .detach() } #[cfg(not(debug_assertions))]