From 63fc25b251e9f01baaf3546830393e4441888a58 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 21 Aug 2021 11:00:02 +0200 Subject: Fix: Import HashMap instead of Map I didn't catch that when merging PR #217. CI should have catched it, but we actually never ran CI for examples. Signed-off-by: Matthias Beyer Fixes: be82af2 ("Rename MapImpl to Map") Fixes: 0d3a5c3 ("Merge pull request #217 from dlo9/master") --- examples/glob/src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/glob/src/main.rs b/examples/glob/src/main.rs index 002ddd4..b3183ef 100644 --- a/examples/glob/src/main.rs +++ b/examples/glob/src/main.rs @@ -1,5 +1,5 @@ use std::path::Path; -use std::collections::Map; +use std::collections::HashMap; use config::*; use glob::glob; @@ -14,9 +14,9 @@ fn main() { .merge(File::from(Path::new("conf/05-some.yml"))).unwrap() .merge(File::from(Path::new("conf/99-extra.json"))).unwrap(); - // Print out our settings (as a Map) + // Print out our settings (as a HashMap) println!("\n{:?} \n\n-----------", - settings.try_into::>().unwrap()); + settings.try_into::>().unwrap()); // Option 2 // -------- @@ -28,9 +28,9 @@ fn main() { File::from(Path::new("conf/99-extra.json"))]) .unwrap(); - // Print out our settings (as a Map) + // Print out our settings (as a HashMap) println!("\n{:?} \n\n-----------", - settings.try_into::>().unwrap()); + settings.try_into::>().unwrap()); // Option 3 // -------- @@ -43,7 +43,7 @@ fn main() { .collect::>()) .unwrap(); - // Print out our settings (as a Map) + // Print out our settings (as a HashMap) println!("\n{:?} \n\n-----------", - settings.try_into::>().unwrap()); + settings.try_into::>().unwrap()); } -- cgit v1.2.3