diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:42:09 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:42:09 +0000 |
| commit | 9d86cf15f0275ffeee4519bd054e3b61dc8992ac (patch) | |
| tree | 65b5d5ffb2a11b5ecd05d01e63fb5a4a0f8b6e06 /grasp-audit/src/bin/grasp-audit.rs | |
| parent | a2ecfc5a63311570f0f90c7ee40117e289639cb8 (diff) | |
chore: apply cargo fmt and fix clippy warnings
Fix pre-existing clippy lints:
- &PathBuf -> &Path in audit_cleanup.rs
- too_many_arguments on process_newly_available_git_data,
process_purgatory_announcements, and HttpService::new
- clone_on_copy for PublicKey (Copy type) in purgatory cleanup loop
Diffstat (limited to 'grasp-audit/src/bin/grasp-audit.rs')
| -rw-r--r-- | grasp-audit/src/bin/grasp-audit.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/grasp-audit/src/bin/grasp-audit.rs b/grasp-audit/src/bin/grasp-audit.rs index 305e5eb..ab835e7 100644 --- a/grasp-audit/src/bin/grasp-audit.rs +++ b/grasp-audit/src/bin/grasp-audit.rs | |||
| @@ -132,7 +132,11 @@ async fn main() -> Result<()> { | |||
| 132 | println!("\n[Run {}]", run); | 132 | println!("\n[Run {}]", run); |
| 133 | } | 133 | } |
| 134 | let report = grasp_audit::probe::run_probe( | 134 | let report = grasp_audit::probe::run_probe( |
| 135 | &relay, keys.clone(), read_only, timeout, overall_secs, | 135 | &relay, |
| 136 | keys.clone(), | ||
| 137 | read_only, | ||
| 138 | timeout, | ||
| 139 | overall_secs, | ||
| 136 | ) | 140 | ) |
| 137 | .await; | 141 | .await; |
| 138 | if json { | 142 | if json { |
| @@ -144,10 +148,9 @@ async fn main() -> Result<()> { | |||
| 144 | tokio::time::sleep(Duration::from_secs(interval)).await; | 148 | tokio::time::sleep(Duration::from_secs(interval)).await; |
| 145 | } | 149 | } |
| 146 | } else { | 150 | } else { |
| 147 | let report = grasp_audit::probe::run_probe( | 151 | let report = |
| 148 | &relay, keys, read_only, timeout, overall_secs, | 152 | grasp_audit::probe::run_probe(&relay, keys, read_only, timeout, overall_secs) |
| 149 | ) | 153 | .await; |
| 150 | .await; | ||
| 151 | if json { | 154 | if json { |
| 152 | report.print_json(); | 155 | report.print_json(); |
| 153 | } else { | 156 | } else { |