mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Fix clippy::single_char_pattern
This commit is contained in:
parent
682bf04bf4
commit
ed3d93b875
4 changed files with 6 additions and 9 deletions
|
@ -70,7 +70,7 @@ impl ProjectRoot {
|
|||
})
|
||||
};
|
||||
|
||||
let hidden = dir_path.components().any(|c| c.as_str().starts_with("."));
|
||||
let hidden = dir_path.components().any(|c| c.as_str().starts_with('.'));
|
||||
|
||||
!is_ignored && !hidden
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue