chore: collapse the ifs the 1.98 clippy flags

The pinned toolchain's clippy grew opinions the older lint let stand:
nested if/if-let pairs it wants as let-chains, and a modulo test it
wants as is_multiple_of. Machine-applied collapses, fmt-settled, no
behavior change — the gauntlet runs clean again.
This commit is contained in:
vhaudiquet committed 2026-10-27 01:12:46 -05:00
1 parent 50e0a3b949
commit e92739aa1b
12 files changed
+94 -96

No files matched your search

@@ -234,18 +234,18 @@ fn vevent_blocks(raw: &str) -> Vec<Vec<ContentLine>> {
}
"END" => {
let component = line.value.trim().to_ascii_uppercase();
if component == "VEVENT" {
if let Some(block) = current.take() {
blocks.push(block);
}
if component == "VEVENT"
&& let Some(block) = current.take()
{
blocks.push(block);
}
stack.pop();
}
_ => {
if stack.last().map(String::as_str) == Some("VEVENT") {
if let Some(block) = current.as_mut() {
block.push(line);
}
if stack.last().map(String::as_str) == Some("VEVENT")
&& let Some(block) = current.as_mut()
{
block.push(line);
}
}
}
@@ -755,10 +755,10 @@ fn expand_rule(
if walked > MAX_CANDIDATES {
return false;
}
if let Some(until) = rule.until {
if start > until {
return false;
}
if let Some(until) = rule.until
&& start > until
{
return false;
}
if start > window.to {
return false;