Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ankddev committed Dec 19, 2024
1 parent e233e1d commit 7813e03
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/editor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11334,7 +11334,11 @@ impl Editor {
}
}

pub fn copy_file_name_without_extension(&mut self, _: &CopyFileNameWithoutExtension, cx: &mut ViewContext<Self>) {
pub fn copy_file_name_without_extension(
&mut self,
_: &CopyFileNameWithoutExtension,
cx: &mut ViewContext<Self>,
) {
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() {
Expand Down
6 changes: 5 additions & 1 deletion crates/project_panel/src/project_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,11 @@ impl ProjectPanel {
}
}

fn copy_file_name_without_extension(&mut self, _: &CopyFileNameWithoutExtension, cx: &mut ViewContext<Self>) {
fn copy_file_name_without_extension(
&mut self,
_: &CopyFileNameWithoutExtension,
cx: &mut ViewContext<Self>,
) {
let file_names = {
let project = self.project.read(cx);
self.marked_entries()
Expand Down

0 comments on commit 7813e03

Please sign in to comment.