Skip to content

Commit ea62693

Browse files
author
David Orchard
committed
Switch from LinkedHashMap to IndexMap
1 parent cc0530a commit ea62693

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ yaml = ["yaml-rust"]
2121
hjson = ["serde-hjson"]
2222
ini = ["rust-ini"]
2323
json5 = ["json5_rs"]
24-
preserve_order = ["linked-hash-map", "toml/preserve_order", "serde_json/preserve_order", "ron/indexmap"]
24+
preserve_order = ["indexmap", "toml/preserve_order", "serde_json/preserve_order", "ron/indexmap"]
2525

2626
[dependencies]
2727
async-trait = "0.1.50"
@@ -36,7 +36,7 @@ serde-hjson = { version = "0.9", default-features = false, optional = true }
3636
rust-ini = { version = "0.17", optional = true }
3737
ron = { version = "0.6", optional = true }
3838
json5_rs = { version = "0.3", optional = true, package = "json5" }
39-
linked-hash-map = { version = "0.5.4", optional = true, features = ["serde_impl"] }
39+
indexmap = { version = "1.7.0", features = ["serde-1"], optional = true}
4040

4141
[dev-dependencies]
4242
serde_derive = "1.0.8"

src/builder.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::iter::IntoIterator;
22
use std::str::FromStr;
33

4-
54
use crate::error::Result;
65
use crate::map::MapImpl;
76
use crate::source::AsyncSource;

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#[cfg(not(feature = "preserve_order"))]
22
pub type MapImpl<K, V> = std::collections::HashMap<K, V>;
33
#[cfg(feature = "preserve_order")]
4-
pub type MapImpl<K, V> = linked_hash_map::LinkedHashMap<K, V>;
4+
pub type MapImpl<K, V> = indexmap::IndexMap<K, V>;

0 commit comments

Comments
 (0)