More combinator cleanup (#17148)
# Objective Cleanup some more awkward combinator chains.
This commit is contained in:
parent
f2931dc433
commit
9ed76b7a56
@ -351,8 +351,7 @@ impl<'w, 's> Diagnostics<'w, 's> {
|
||||
if self
|
||||
.store
|
||||
.get(path)
|
||||
.filter(|diagnostic| diagnostic.is_enabled)
|
||||
.is_some()
|
||||
.is_some_and(|diagnostic| diagnostic.is_enabled)
|
||||
{
|
||||
let measurement = DiagnosticMeasurement {
|
||||
time: Instant::now(),
|
||||
|
@ -64,8 +64,7 @@ fn parse_examples(panic_on_missing: bool) -> Vec<Example> {
|
||||
.get(&technical_name)
|
||||
.and_then(|metadata| metadata.get("hidden"))
|
||||
.and_then(Item::as_bool)
|
||||
.and_then(|hidden| hidden.then_some(()))
|
||||
.is_some()
|
||||
.unwrap_or(false)
|
||||
{
|
||||
return None;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user