aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/reload.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/reload.rs b/crates/rust-analyzer/src/reload.rs
index a81ecdf20..4e7d5be79 100644
--- a/crates/rust-analyzer/src/reload.rs
+++ b/crates/rust-analyzer/src/reload.rs
@@ -53,7 +53,7 @@ impl GlobalState {
53 if change_kind == ChangeKind::Modify { 53 if change_kind == ChangeKind::Modify {
54 return false; 54 return false;
55 } 55 }
56 if path.extension().map(|it| it.to_str()) != Some("rs".into()) { 56 if path.extension().unwrap_or_default() != "rs" {
57 return false; 57 return false;
58 } 58 }
59 if IMPLICIT_TARGET_FILES.iter().any(|it| path.ends_with(it)) { 59 if IMPLICIT_TARGET_FILES.iter().any(|it| path.ends_with(it)) {