aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorShuiRuTian <[email protected]>2021-01-10 06:27:18 +0000
committerShuiRuTian <[email protected]>2021-01-10 06:27:18 +0000
commitb0e300c793db1110266056ac4b7fdfea10c3bba0 (patch)
treef86b095db901772c593cac35e77bf29fd260e72f /crates
parentf5a6fda3273ca9ee789479c3e1151a406c6b5b22 (diff)
fix condition.
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/handlers.rs2
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