From 9b52601808a0d26f1db7e47c3e4660cecb675350 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 30 Sep 2020 12:46:08 +0200 Subject: [PATCH] signatures: Replace remaining uses of HashMap with BTreeMap --- ruma-signatures/src/signatures.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruma-signatures/src/signatures.rs b/ruma-signatures/src/signatures.rs index 8583b826..4c3e7afd 100644 --- a/ruma-signatures/src/signatures.rs +++ b/ruma-signatures/src/signatures.rs @@ -1,6 +1,6 @@ //! Digital signatures and collections of signatures. -use std::collections::HashMap; +use std::collections::BTreeMap; use base64::{encode_config, STANDARD_NO_PAD}; @@ -98,12 +98,12 @@ impl Signature { /// A map from entity names to sets of digital signatures created by that entity. /// /// "Entity" is generally a homeserver, e.g. "example.com". -pub type SignatureMap = HashMap; +pub type SignatureMap = BTreeMap; /// A set of digital signatures created by a single homeserver. /// /// This is represented as a map from signing key ID to Base64-encoded signature. -pub type SignatureSet = HashMap; +pub type SignatureSet = BTreeMap; #[cfg(test)] mod tests {