From 7813e039b9645708d4c15836961ffa5df44d1f8a Mon Sep 17 00:00:00 2001 From: ANKDDEV Date: Thu, 19 Dec 2024 15:10:41 +0300 Subject: [PATCH] style: fix formatting --- crates/editor/src/editor.rs | 6 +++++- crates/project_panel/src/project_panel.rs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 17b882314059d..ad52ab65b40e3 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -11334,7 +11334,11 @@ impl Editor { } } - pub fn copy_file_name_without_extension(&mut self, _: &CopyFileNameWithoutExtension, cx: &mut ViewContext) { + pub fn copy_file_name_without_extension( + &mut self, + _: &CopyFileNameWithoutExtension, + cx: &mut ViewContext, + ) { if let Some(file) = self.target_file(cx) { if let Some(file_stem) = file.path().file_stem() { if let Some(name) = file_stem.to_str() { diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index c97fc474a186c..bc99d2a37b894 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -1963,7 +1963,11 @@ impl ProjectPanel { } } - fn copy_file_name_without_extension(&mut self, _: &CopyFileNameWithoutExtension, cx: &mut ViewContext) { + fn copy_file_name_without_extension( + &mut self, + _: &CopyFileNameWithoutExtension, + cx: &mut ViewContext, + ) { let file_names = { let project = self.project.read(cx); self.marked_entries()