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 /tests/common/sync_helpers.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 'tests/common/sync_helpers.rs')
| -rw-r--r-- | tests/common/sync_helpers.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/common/sync_helpers.rs b/tests/common/sync_helpers.rs index af51e78..611b1a5 100644 --- a/tests/common/sync_helpers.rs +++ b/tests/common/sync_helpers.rs | |||
| @@ -1240,8 +1240,11 @@ pub async fn push_unique_git_data_to_relay( | |||
| 1240 | git(path, &["config", "commit.gpgsign", "false"]); | 1240 | git(path, &["config", "commit.gpgsign", "false"]); |
| 1241 | 1241 | ||
| 1242 | // Write a unique file so each maintainer gets a distinct commit hash | 1242 | // Write a unique file so each maintainer gets a distinct commit hash |
| 1243 | std::fs::write(path.join("state_test.txt"), "State test content for purgatory sync") | 1243 | std::fs::write( |
| 1244 | .expect("write state_test.txt"); | 1244 | path.join("state_test.txt"), |
| 1245 | "State test content for purgatory sync", | ||
| 1246 | ) | ||
| 1247 | .expect("write state_test.txt"); | ||
| 1245 | std::fs::write(path.join(".unique"), unique_seed).expect("write .unique"); | 1248 | std::fs::write(path.join(".unique"), unique_seed).expect("write .unique"); |
| 1246 | git(path, &["add", "."]); | 1249 | git(path, &["add", "."]); |
| 1247 | git(path, &["commit", "-m", "State test commit"]); | 1250 | git(path, &["commit", "-m", "State test commit"]); |