refactor: apply clippy

This commit is contained in:
Edouard Vanbelle
2026-07-27 23:06:02 +02:00
parent 1190dfef87
commit 72b99f5b9a
6 changed files with 28 additions and 30 deletions
@@ -122,10 +122,9 @@ impl JobHandler for GrantCleanupService {
/// `Arc<GrantCleanupService>` from the handler.
async fn run(&self) -> JobOutcome {
match self.purge(None).await {
Ok(count) => JobOutcome::ok_with(
count,
serde_json::json!({ "grace_days": self.grace_days }),
),
Ok(count) => {
JobOutcome::ok_with(count, serde_json::json!({ "grace_days": self.grace_days }))
}
Err(e) => JobOutcome::Err(format!("grant cleanup failed: {e}")),
}
}