upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/fixtures.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-26 15:42:09 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-26 15:42:09 +0000
commit9d86cf15f0275ffeee4519bd054e3b61dc8992ac (patch)
tree65b5d5ffb2a11b5ecd05d01e63fb5a4a0f8b6e06 /grasp-audit/src/fixtures.rs
parenta2ecfc5a63311570f0f90c7ee40117e289639cb8 (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/fixtures.rs')
-rw-r--r--grasp-audit/src/fixtures.rs16
1 files changed, 13 insertions, 3 deletions
diff --git a/grasp-audit/src/fixtures.rs b/grasp-audit/src/fixtures.rs
index 4678790..d09c36b 100644
--- a/grasp-audit/src/fixtures.rs
+++ b/grasp-audit/src/fixtures.rs
@@ -967,7 +967,9 @@ impl<'a> TestContext<'a> {
967 FixtureKind::PREvent2Served => self.build_pr_event_2_served().await, 967 FixtureKind::PREvent2Served => self.build_pr_event_2_served().await,
968 968
969 FixtureKind::PurgatoryValidRepoSent => self.build_purgatory_valid_repo_sent().await, 969 FixtureKind::PurgatoryValidRepoSent => self.build_purgatory_valid_repo_sent().await,
970 FixtureKind::PurgatoryOwnerStateDataPushed => self.build_purgatory_owner_state_data_pushed().await, 970 FixtureKind::PurgatoryOwnerStateDataPushed => {
971 self.build_purgatory_owner_state_data_pushed().await
972 }
971 973
972 FixtureKind::OwnerStateDataPushed => self.build_owner_state_data_pushed().await, 974 FixtureKind::OwnerStateDataPushed => self.build_owner_state_data_pushed().await,
973 975
@@ -1147,7 +1149,10 @@ impl<'a> TestContext<'a> {
1147 Ok(h) => h, 1149 Ok(h) => h,
1148 Err(e) => { 1150 Err(e) => {
1149 cleanup(&clone_path); 1151 cleanup(&clone_path);
1150 return Err(anyhow::anyhow!("Failed to create deterministic commit: {}", e)); 1152 return Err(anyhow::anyhow!(
1153 "Failed to create deterministic commit: {}",
1154 e
1155 ));
1151 } 1156 }
1152 }; 1157 };
1153 1158
@@ -1186,7 +1191,12 @@ impl<'a> TestContext<'a> {
1186 DETERMINISTIC_COMMIT_HASH 1191 DETERMINISTIC_COMMIT_HASH
1187 )); 1192 ));
1188 } 1193 }
1189 Err(e) => return Err(anyhow::anyhow!("PurgatoryOwnerStateDataPushed push error: {}", e)), 1194 Err(e) => {
1195 return Err(anyhow::anyhow!(
1196 "PurgatoryOwnerStateDataPushed push error: {}",
1197 e
1198 ))
1199 }
1190 } 1200 }
1191 1201
1192 // ============================================================ 1202 // ============================================================