diff options
Diffstat (limited to 'examples/glob/src/main.rs')
-rw-r--r-- | examples/glob/src/main.rs | 14 |
1 files changed, 7 insertions, 7 deletions
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::<Map<String, String>>().unwrap()); + settings.try_into::<HashMap<String, String>>().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::<Map<String, String>>().unwrap()); + settings.try_into::<HashMap<String, String>>().unwrap()); // Option 3 // -------- @@ -43,7 +43,7 @@ fn main() { .collect::<Vec<_>>()) .unwrap(); - // Print out our settings (as a Map) + // Print out our settings (as a HashMap) println!("\n{:?} \n\n-----------", - settings.try_into::<Map<String, String>>().unwrap()); + settings.try_into::<HashMap<String, String>>().unwrap()); } |