From 7bad7ae14f542bd382d5ae283b7ee1cc6c9007e0 Mon Sep 17 00:00:00 2001 From: James Sadler Date: Fri, 13 Nov 2026 22:52:27 +1100 Subject: [PATCH] fix(stack-encrypt): pass the cipher to record::decrypt in heap_hygiene #1643 called record::decrypt with Scope::Client(&cipher). #1610 replaced dynamic::Scope with CipherRef, which a &StackCipher converts into, and merged first. Each PR built on its own, but the merge does not: heap_hygiene.rs (feature dynamic) fails with an undeclared Scope. --- packages/stack-encrypt/tests/heap_hygiene.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stack-encrypt/tests/heap_hygiene.rs b/packages/stack-encrypt/tests/heap_hygiene.rs index 83578e4841..6889fb8ed1 100644 --- a/packages/stack-encrypt/tests/heap_hygiene.rs +++ b/packages/stack-encrypt/tests/heap_hygiene.rs @@ -1242,7 +1242,7 @@ mod cancellation { in_flight("record::decrypt, dropped in flight", &mut || { let stored = stored.take().unwrap(); drop_in_flight( - record::decrypt(Scope::Client(&cipher), stored, &plan, None).unwrap(), + record::decrypt(&cipher, stored, &plan, None).unwrap(), &requests, ); });