aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-10 22:57:56 +0100
committerGitHub <[email protected]>2020-07-10 22:57:56 +0100
commit349c4fcecaab90a521d4344cf965202ed7a0a54e (patch)
tree91e83a59836f588e3f5ccd263e4c0bdf3de59a79
parent6c920d9ac80fca5de3c5c536107c1e14580cae85 (diff)
parenta425d7d871af7146f6ddc9ebc1c1da905867300e (diff)
Merge #5302
5302: Simplify r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-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)) {