Skip to content

Commit ed2bbf3

Browse files
committed
fmt
1 parent 643f9c2 commit ed2bbf3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/app/file_open_input.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,12 @@ impl Editor {
273273
(full_path.clone(), String::new())
274274
} else {
275275
// Get parent directory so the file will be in the listing
276-
let parent = full_path.parent().map(|p| p.to_path_buf()).unwrap_or(full_path.clone());
277-
let name = full_path.file_name()
276+
let parent = full_path
277+
.parent()
278+
.map(|p| p.to_path_buf())
279+
.unwrap_or(full_path.clone());
280+
let name = full_path
281+
.file_name()
278282
.map(|n| n.to_string_lossy().to_string())
279283
.unwrap_or_default();
280284
(parent, name)

tests/e2e/file_browser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,8 @@ fn test_file_browser_prompt_shows_buffer_directory() {
885885
assert!(
886886
prompt_line.ends_with(expected_suffix),
887887
"Prompt should end with '{}'\nActual: '{}'",
888-
expected_suffix, prompt_line,
888+
expected_suffix,
889+
prompt_line,
889890
);
890891

891892
// The sibling file should be visible in the file list

0 commit comments

Comments
 (0)