Skip to content

Commit feee160

Browse files
committed
test(stack-encrypt): import AsProtectedRef only where json_index's dynamic tests use it
The import sat at the top of tests/json_index.rs, but every use is in the module gated on the dynamic feature. With default features off, as the wasm:no-http-test task builds it, the import was unused, and the WASI check job failed on the warning.
1 parent 203f93f commit feee160

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/stack-encrypt/tests/json_index.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ use stack_encrypt::sem::TermError;
3030
use stack_encrypt::target::{
3131
AeadContext, CallerContext, DecryptField, Decryption, IndexSpec, Json,
3232
};
33-
use stack_encrypt::AsProtectedRef as _;
3433
use stack_encrypt::{nonempty, Error, Plan, PlanError, StackCipher};
3534
use stack_kms::FakeDataKeySource;
3635

@@ -2933,6 +2932,7 @@ mod given_a_laid_out_plan {
29332932
#[cfg(feature = "dynamic")]
29342933
mod given_the_json_index_spec {
29352934
use super::*;
2935+
use stack_encrypt::AsProtectedRef as _;
29362936

29372937
/// The spec's wire form is a fixed contract with stored data and the Go
29382938
/// guest, so its strings are pinned literally.

0 commit comments

Comments
 (0)