From 5315502c8c95ba99f6637d85e7b6085f492a3a2e Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 28 Sep 2021 13:19:07 -0600 Subject: [PATCH] use IndexMap for config spec --- appmgr/src/config/spec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appmgr/src/config/spec.rs b/appmgr/src/config/spec.rs index f93257912..ac4abe0a4 100644 --- a/appmgr/src/config/spec.rs +++ b/appmgr/src/config/spec.rs @@ -7,7 +7,7 @@ use std::sync::Arc; use std::time::Duration; use async_trait::async_trait; -use indexmap::IndexSet; +use indexmap::{IndexMap, IndexSet}; use itertools::Itertools; use jsonpath_lib::Compiled as CompiledJsonPath; use patch_db::{DbHandle, OptionModel}; @@ -993,7 +993,7 @@ impl Defaultable for ValueSpecObject { } #[derive(Clone, Debug, Default, Serialize, Deserialize)] -pub struct ConfigSpec(pub BTreeMap); +pub struct ConfigSpec(pub IndexMap); impl ConfigSpec { pub fn matches(&self, value: &Config) -> Result<(), NoMatchWithPath> { for (key, val) in self.0.iter() {