diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs index 480608196..1aafef78b 100644 --- a/crates/rust-analyzer/src/handlers.rs +++ b/crates/rust-analyzer/src/handlers.rs | |||
@@ -446,7 +446,7 @@ pub(crate) fn handle_will_rename_files( | |||
446 | let old_name = old_name.to_str()?; | 446 | let old_name = old_name.to_str()?; |
447 | let new_name = to_path.file_stem()?; | 447 | let new_name = to_path.file_stem()?; |
448 | let new_name = new_name.to_str()?; | 448 | let new_name = new_name.to_str()?; |
449 | if old_name != "mod" || new_name != "mod" { | 449 | if old_name != "mod" && new_name != "mod" { |
450 | Some((snap.url_to_file_id(&from).ok()?, new_name.to_string())) | 450 | Some((snap.url_to_file_id(&from).ok()?, new_name.to_string())) |
451 | } else { | 451 | } else { |
452 | None | 452 | None |