diff --git a/crates/file_finder/src/new_path_prompt.rs b/crates/file_finder/src/new_path_prompt.rs index 75b1c9e4e0..5a0cd87025 100644 --- a/crates/file_finder/src/new_path_prompt.rs +++ b/crates/file_finder/src/new_path_prompt.rs @@ -88,7 +88,7 @@ impl Match { let home = project .update(&mut cx, |project, cx| { project.resolve_abs_path( - &("~/".to_string() + &path.to_string_lossy().to_string()), + &("~/".to_string() + &path.to_string_lossy().as_ref()), cx, ) })?