mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-06 20:19:14 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user