summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Orchard <if_coding@fastmail.com>2021-08-01 00:11:40 -0700
committerDavid Orchard <if_coding@fastmail.com>2021-08-15 10:32:07 -0700
commitea62693f6fff0dd24865b934334260d06f190e01 (patch)
tree7a071eea0dcb2630bd8ca018fdffca350e8adeac /src
parentcc0530a7716779f954b1756905a9f4ceb7eb6d62 (diff)
Switch from LinkedHashMap to IndexMap
Diffstat (limited to 'src')
-rw-r--r--src/builder.rs1
-rw-r--r--src/map.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 5100f5f..0cbd32a 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -1,7 +1,6 @@
use std::iter::IntoIterator;
use std::str::FromStr;
-
use crate::error::Result;
use crate::map::MapImpl;
use crate::source::AsyncSource;
diff --git a/src/map.rs b/src/map.rs
index ae41155..baf4e3b 100644
--- a/src/map.rs
+++ b/src/map.rs
@@ -1,4 +1,4 @@
#[cfg(not(feature = "preserve_order"))]
pub type MapImpl<K, V> = std::collections::HashMap<K, V>;
#[cfg(feature = "preserve_order")]
-pub type MapImpl<K, V> = linked_hash_map::LinkedHashMap<K, V>;
+pub type MapImpl<K, V> = indexmap::IndexMap<K, V>;