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
|
if self
|
||||||
.store
|
.store
|
||||||
.get(path)
|
.get(path)
|
||||||
.filter(|diagnostic| diagnostic.is_enabled)
|
.is_some_and(|diagnostic| diagnostic.is_enabled)
|
||||||
.is_some()
|
|
||||||
{
|
{
|
||||||
let measurement = DiagnosticMeasurement {
|
let measurement = DiagnosticMeasurement {
|
||||||
time: Instant::now(),
|
time: Instant::now(),
|
||||||
|
@ -64,8 +64,7 @@ fn parse_examples(panic_on_missing: bool) -> Vec<Example> {
|
|||||||
.get(&technical_name)
|
.get(&technical_name)
|
||||||
.and_then(|metadata| metadata.get("hidden"))
|
.and_then(|metadata| metadata.get("hidden"))
|
||||||
.and_then(Item::as_bool)
|
.and_then(Item::as_bool)
|
||||||
.and_then(|hidden| hidden.then_some(()))
|
.unwrap_or(false)
|
||||||
.is_some()
|
|
||||||
{
|
{
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user