diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-08 10:57:51 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-08 10:57:51 +0000 |
| commit | 075307804bf66bba10f5bc55cb40e2e6a98a65ee (patch) | |
| tree | f5a3eb2738372582e28a9a55a8f9481f0af9594b /src | |
| parent | f75e1c59aacf5ce668fd327e4e3d827511661c2a (diff) | |
chore: upgrade nostr-* packages to rev 4767ad13
- Update nostr-relay-builder, nostr-sdk, nostr-lmdb to latest revision
- Update grasp-audit nostr-sdk dependency
- Fix clippy warnings:
- Replace .clone() with std::slice::from_ref() in src/git/sync.rs
- Change &PathBuf to &Path in tests/common/git_server.rs
- Replace vec![] with array literal in src/purgatory/sync/functions.rs
- Update PR_TEST_COMMIT_HASH in grasp-audit due to event generation changes
All 249 tests passing, no breaking changes required.
Diffstat (limited to 'src')
| -rw-r--r-- | src/git/sync.rs | 5 | ||||
| -rw-r--r-- | src/purgatory/sync/functions.rs | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/git/sync.rs b/src/git/sync.rs index 06013a5..b05e2d0 100644 --- a/src/git/sync.rs +++ b/src/git/sync.rs | |||
| @@ -1618,7 +1618,8 @@ mod tests { | |||
| 1618 | }; | 1618 | }; |
| 1619 | 1619 | ||
| 1620 | // latest should be considered latest | 1620 | // latest should be considered latest |
| 1621 | let result = is_latest_authorized_state(&latest, &maintainers, &[older.clone()]); | 1621 | let result = |
| 1622 | is_latest_authorized_state(&latest, &maintainers, std::slice::from_ref(&older)); | ||
| 1622 | assert!(result); | 1623 | assert!(result); |
| 1623 | 1624 | ||
| 1624 | // older should not be considered latest | 1625 | // older should not be considered latest |
| @@ -1633,7 +1634,7 @@ mod tests { | |||
| 1633 | let maintainers = vec![keys.public_key().to_hex()]; | 1634 | let maintainers = vec![keys.public_key().to_hex()]; |
| 1634 | 1635 | ||
| 1635 | // When the state being checked is also in the db_states, it should be considered latest | 1636 | // When the state being checked is also in the db_states, it should be considered latest |
| 1636 | let result = is_latest_authorized_state(&state, &maintainers, &[state.clone()]); | 1637 | let result = is_latest_authorized_state(&state, &maintainers, std::slice::from_ref(&state)); |
| 1637 | assert!(result); | 1638 | assert!(result); |
| 1638 | } | 1639 | } |
| 1639 | } | 1640 | } |
diff --git a/src/purgatory/sync/functions.rs b/src/purgatory/sync/functions.rs index 370990e..0139ac5 100644 --- a/src/purgatory/sync/functions.rs +++ b/src/purgatory/sync/functions.rs | |||
| @@ -930,7 +930,7 @@ mod tests { | |||
| 930 | .expect("Should return a second URL"); | 930 | .expect("Should return a second URL"); |
| 931 | 931 | ||
| 932 | // Both URLs should be available (one from announcement, one from PR) | 932 | // Both URLs should be available (one from announcement, one from PR) |
| 933 | let both_urls = vec![first_url, second_url]; | 933 | let both_urls = [first_url, second_url]; |
| 934 | assert!( | 934 | assert!( |
| 935 | both_urls.iter().any(|u| u.contains("github.com")), | 935 | both_urls.iter().any(|u| u.contains("github.com")), |
| 936 | "Should include announcement URL" | 936 | "Should include announcement URL" |