diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-11 21:54:47 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-11 21:59:02 +0200 |
| commit | 12be8fe070d6c3b0ef04c744ba300063f30791cf (patch) | |
| tree | 8f018b638ebbc78130cc34ae684dc06367bd865f /src/eval/mod.rs | |
| parent | 6dcb65e3a30c59f4a99cd1a985075b1d0adc385f (diff) | |
Let dictionaries respect insertion order
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 55d2a734..5a450481 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -37,7 +37,7 @@ pub use self::value::*; pub(crate) use self::methods::methods_on; -use std::collections::{BTreeMap, HashSet}; +use std::collections::HashSet; use std::mem; use std::path::{Path, PathBuf}; @@ -870,7 +870,7 @@ impl Eval for ast::Dict { type Output = Dict; fn eval(&self, vm: &mut Vm) -> SourceResult<Self::Output> { - let mut map = BTreeMap::new(); + let mut map = indexmap::IndexMap::new(); for item in self.items() { match item { |
