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:
1 parent
50e0a3b949
commit
e92739aa1b
12 files changed
+94
-96
No files matched your search
@@ -400,10 +400,10 @@ fn review_event(
|
||||
}
|
||||
// A review without a submission time was never submitted.
|
||||
let timestamp = required(row.submitted_at.clone(), "review submitted_at")?;
|
||||
if let Some(since) = since {
|
||||
if timestamp < *since {
|
||||
return Ok(None);
|
||||
}
|
||||
if let Some(since) = since
|
||||
&& timestamp < *since
|
||||
{
|
||||
return Ok(None);
|
||||
}
|
||||
let id = required(row.id, "review id")?;
|
||||
Ok(Some(ForgeEvent {
|
||||
|
||||
Reference in new issue
Block a user