Compare commits

...

1 Commits

Author SHA1 Message Date
overtrue bbcc8bc7ab fix(ecstore): add missing HashMap import in sealed_credentials test
The test module references HashMap in encode_context() but did not
import std::collections::HashMap. Changed the function signature to
accept BTreeMap (matching the SealScope::encryption_context() return
type) and removed the redundant BTreeMap conversion.
2026-09-05 08:35:39 +08:00
@@ -203,9 +203,8 @@ mod tests {
use parking_lot::Mutex;
use std::collections::BTreeMap;
fn encode_context(context: &HashMap<String, String>) -> String {
let ordered = context.iter().collect::<BTreeMap<_, _>>();
serde_json::to_string(&ordered).expect("context serializes")
fn encode_context(context: &BTreeMap<String, String>) -> String {
serde_json::to_string(context).expect("context serializes")
}
/// Stands in for the KMS-backed sealer: records the context it was called