diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-08-21 11:00:02 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-08-21 11:10:04 +0200 |
commit | 63fc25b251e9f01baaf3546830393e4441888a58 (patch) | |
tree | 54c85d2c0f5284e8774a8f5fd5a38379af836422 /examples | |
parent | 39bb83c97b6769cee6225cbd04e33ea95d0a8b64 (diff) |
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 <mail@beyermatthias.de>
Fixes: be82af2 ("Rename MapImpl to Map")
Fixes: 0d3a5c3 ("Merge pull request #217 from dlo9/master")
Diffstat (limited to 'examples')
-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()); } |