mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Merge #5302
5302: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
349c4fceca
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ impl GlobalState {
|
|||
if change_kind == ChangeKind::Modify {
|
||||
return false;
|
||||
}
|
||||
if path.extension().map(|it| it.to_str()) != Some("rs".into()) {
|
||||
if path.extension().unwrap_or_default() != "rs" {
|
||||
return false;
|
||||
}
|
||||
if IMPLICIT_TARGET_FILES.iter().any(|it| path.ends_with(it)) {
|
||||
|
|
Loading…
Reference in a new issue