fix(ci): align lint-safe security paths

This commit is contained in:
elky
2026-09-05 03:19:53 +08:00
parent f5e1420ee6
commit 33d5cd5993
45 changed files with 180 additions and 132 deletions
@@ -83,6 +83,10 @@ impl From<&StoredUserAuthRecord> for MemoryAuthApiKeyOwnerSnapshot {
}
}
// The trusted snapshot is returned on the common path so callers can use the
// complete immutable view without another lookup. Preserve this established
// in-memory registry representation rather than introducing heap allocation.
#[allow(clippy::large_enum_variant)]
#[derive(Debug)]
enum MemoryAuthApiKeyOwnerRegistryEntry {
Trusted(MemoryAuthApiKeyOwnerSnapshot),
@@ -1825,9 +1825,9 @@ impl WalletWriteRepository for InMemoryWalletRepository {
));
}
let now_secs = current_unix_secs();
if !current_order
if current_order
.expires_at_unix_secs
.is_some_and(|expires_at| expires_at > now_secs)
.is_none_or(|expires_at| expires_at <= now_secs)
{
return Ok(WalletMutationOutcome::Invalid(
"wallet recharge order is expired".to_string(),