Fix clippy::manual_map
lint violations (#36584)
#36577 Release Notes: - N/A
This commit is contained in:
parent
de12633591
commit
bc79076ad3
18 changed files with 62 additions and 118 deletions
|
@ -267,10 +267,9 @@ impl FileFinder {
|
|||
) {
|
||||
self.picker.update(cx, |picker, cx| {
|
||||
picker.delegate.include_ignored = match picker.delegate.include_ignored {
|
||||
Some(true) => match FileFinderSettings::get_global(cx).include_ignored {
|
||||
Some(_) => Some(false),
|
||||
None => None,
|
||||
},
|
||||
Some(true) => FileFinderSettings::get_global(cx)
|
||||
.include_ignored
|
||||
.map(|_| false),
|
||||
Some(false) => Some(true),
|
||||
None => Some(true),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue