fix: lints
Some checks failed
ci/woodpecker/pr/server-audit Pipeline failed
ci/woodpecker/pr/server-vet Pipeline failed
ci/woodpecker/pr/server-lint Pipeline was successful
ci/woodpecker/pr/server-test Pipeline failed

This commit is contained in:
Clippy Bot
2026-06-25 20:09:18 +02:00
parent 00ddf99d77
commit 022003ac5e
4 changed files with 10 additions and 11 deletions

View File

@@ -334,7 +334,7 @@ mod tests {
/// Regression test: revocation must delete by access-entry `id`, not by `wallet_id`.
///
/// Before the fix, revoking entry_id=1 would delete all rows where wallet_id=1,
/// Before the fix, revoking `entry_id=1` would delete all rows where `wallet_id=1`,
/// wiping out every client's access to wallet #1.
#[tokio::test]
async fn revoke_deletes_by_entry_id_not_wallet_id() {
@@ -395,10 +395,10 @@ mod tests {
assert_eq!(still_there, 1, "unrelated entry must not be deleted");
}
/// Regression test: when entry_id and wallet_id differ, only the correct row is removed.
/// Regression test: when `entry_id` and `wallet_id` differ, only the correct row is removed.
///
/// This specifically catches the case where entry.id=5 and wallet_id=1 are different values;
/// the old bug would delete by wallet_id, potentially matching a completely different entry.
/// This specifically catches the case where `entry.id=5` and `wallet_id=1` are different values;
/// the old bug would delete by `wallet_id`, potentially matching a completely different entry.
#[tokio::test]
async fn revoke_with_mismatched_wallet_and_entry_ids() {
use crate::db::models::EvmWalletAccess;

View File

@@ -54,7 +54,7 @@ pub struct OperatorSession {
sender: Box<dyn Sender<OutOfBand>>,
pending_client_approvals: HashMap<Vec<u8>, PendingClientApproval>,
/// DB client_ids this operator session is allowed to sign for.
/// DB `client_ids` this operator session is allowed to sign for.
/// Seeded from currently-connected clients on start, then updated as
/// approvals are granted or denied during the session lifetime.
approved_client_ids: HashSet<i32>,