From b4e20821961c0d05f969dcea8bab2b9bb69b7071 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 20 Jun 2022 02:13:28 +0100 Subject: [PATCH] Use BTreeMap for database execution variables --- lib/src/dbs/variables.rs | 4 ++-- src/mac/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/dbs/variables.rs b/lib/src/dbs/variables.rs index 8a3b07ad..a046f9f9 100644 --- a/lib/src/dbs/variables.rs +++ b/lib/src/dbs/variables.rs @@ -1,8 +1,8 @@ use crate::ctx::Context; use crate::sql::value::Value; -use std::collections::HashMap; +use std::collections::BTreeMap; -pub type Variables = Option>; +pub type Variables = Option>; pub(crate) trait Attach { fn attach(self, ctx: Context) -> Context; diff --git a/src/mac/mod.rs b/src/mac/mod.rs index 739dac56..85307b3d 100644 --- a/src/mac/mod.rs +++ b/src/mac/mod.rs @@ -1,6 +1,6 @@ macro_rules! map { ($($k:expr => $v:expr),* $(,)?) => {{ - let mut m = ::std::collections::HashMap::new(); + let mut m = ::std::collections::BTreeMap::new(); $(m.insert($k, $v);)+ m }};