diff options
author | Aleksey Kladov <[email protected]> | 2020-07-10 22:57:10 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-10 22:57:10 +0100 |
commit | a425d7d871af7146f6ddc9ebc1c1da905867300e (patch) | |
tree | 91e83a59836f588e3f5ccd263e4c0bdf3de59a79 | |
parent | 6c920d9ac80fca5de3c5c536107c1e14580cae85 (diff) |
Simplify
-rw-r--r-- | crates/rust-analyzer/src/reload.rs | 2 |
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)) { |