Fix various clippy warnings

This commit fixes various clippy warnings that do not affect the
function of the code and aren't stylistic in nature.
This commit is contained in:
Sashanoraa
2025-03-23 19:30:25 -04:00
committed by Will Greenberg
parent 9c26e89b24
commit d0d01089dd
8 changed files with 26 additions and 30 deletions

View File

@@ -97,11 +97,9 @@ impl AnalysisRow {
pub fn contains_warnings(&self) -> bool {
for analysis in &self.analysis {
for maybe_event in &analysis.events {
if let Some(event) = maybe_event {
if matches!(event.event_type, EventType::QualitativeWarning { .. }) {
return true;
}
for event in analysis.events.iter().flatten() {
if matches!(event.event_type, EventType::QualitativeWarning { .. }) {
return true;
}
}
}