From b0e300c793db1110266056ac4b7fdfea10c3bba0 Mon Sep 17 00:00:00 2001 From: ShuiRuTian <158983297@qq.com> Date: Sun, 10 Jan 2021 14:27:18 +0800 Subject: fix condition. --- crates/rust-analyzer/src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') 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( let old_name = old_name.to_str()?; let new_name = to_path.file_stem()?; let new_name = new_name.to_str()?; - if old_name != "mod" || new_name != "mod" { + if old_name != "mod" && new_name != "mod" { Some((snap.url_to_file_id(&from).ok()?, new_name.to_string())) } else { None -- cgit v1.2.3