upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git/sync.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 10:57:51 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-08 10:57:51 +0000
commit075307804bf66bba10f5bc55cb40e2e6a98a65ee (patch)
treef5a3eb2738372582e28a9a55a8f9481f0af9594b /src/git/sync.rs
parentf75e1c59aacf5ce668fd327e4e3d827511661c2a (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/git/sync.rs')
-rw-r--r--src/git/sync.rs5
1 files changed, 3 insertions, 2 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}