summaryrefslogtreecommitdiffstats
path: root/tests/async_builder.rs
diff options
context:
space:
mode:
authorDavid Orchard <if_coding@fastmail.com>2021-08-01 00:03:10 -0700
committerDavid Orchard <if_coding@fastmail.com>2021-08-15 10:31:58 -0700
commitcc0530a7716779f954b1756905a9f4ceb7eb6d62 (patch)
tree311b2ca44a282bbc629a08123f53a855cba38c1c /tests/async_builder.rs
parent622efaca17256fb42dafc61c8df1f3037c1fb772 (diff)
Move order preservation under a feature gate
Diffstat (limited to 'tests/async_builder.rs')
-rw-r--r--tests/async_builder.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/async_builder.rs b/tests/async_builder.rs
index a614d42..bf923d6 100644
--- a/tests/async_builder.rs
+++ b/tests/async_builder.rs
@@ -1,6 +1,7 @@
+#![cfg(feature = "preserve_order")]
+
use async_trait::async_trait;
use config::*;
-use linked_hash_map::LinkedHashMap;
use std::{env, fs, path, str::FromStr};
use tokio::{fs::File, io::AsyncReadExt};
@@ -19,7 +20,7 @@ impl AsyncFile {
#[async_trait]
impl AsyncSource for AsyncFile {
- async fn collect(&self) -> Result<LinkedHashMap<String, Value>, ConfigError> {
+ async fn collect(&self) -> Result<MapImpl<String, Value>, ConfigError> {
let mut path = env::current_dir().unwrap();
let local = path::PathBuf::from_str(&self.path).unwrap();