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
@@ -382,10 +382,10 @@ fn note_event(
|
||||
return Ok(None);
|
||||
}
|
||||
let timestamp = required(row.created_at.clone(), "note created_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, "note id")?;
|
||||
Ok(Some(ForgeEvent {
|
||||
|
||||
Reference in new issue
Block a user