mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Update crates/rust-analyzer/src/handlers.rs
Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
This commit is contained in:
parent
f7cb9e9fbe
commit
497e9da433
1 changed files with 2 additions and 4 deletions
|
@ -450,10 +450,8 @@ pub(crate) fn handle_will_rename_files(
|
|||
imite_new_file_name.to_string(),
|
||||
))
|
||||
} else {
|
||||
let old_name = from_path.file_stem()?;
|
||||
let old_name = old_name.to_str()?;
|
||||
let new_name = to_path.file_stem()?;
|
||||
let new_name = new_name.to_str()?;
|
||||
let old_name = from_path.file_stem()?.to_str()?;
|
||||
let new_name = to_path.file_stem()?.to_str()?;
|
||||
if old_name != "mod" && new_name != "mod" {
|
||||
Some((snap.url_to_file_id(&from).ok()?, new_name.to_string()))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue