Skip to content

Commit 63fc25b

Browse files
committed
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")
1 parent 39bb83c commit 63fc25b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

examples/glob/src/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::path::Path;
2-
use std::collections::Map;
2+
use std::collections::HashMap;
33
use config::*;
44
use glob::glob;
55

@@ -14,9 +14,9 @@ fn main() {
1414
.merge(File::from(Path::new("conf/05-some.yml"))).unwrap()
1515
.merge(File::from(Path::new("conf/99-extra.json"))).unwrap();
1616

17-
// Print out our settings (as a Map)
17+
// Print out our settings (as a HashMap)
1818
println!("\n{:?} \n\n-----------",
19-
settings.try_into::<Map<String, String>>().unwrap());
19+
settings.try_into::<HashMap<String, String>>().unwrap());
2020

2121
// Option 2
2222
// --------
@@ -28,9 +28,9 @@ fn main() {
2828
File::from(Path::new("conf/99-extra.json"))])
2929
.unwrap();
3030

31-
// Print out our settings (as a Map)
31+
// Print out our settings (as a HashMap)
3232
println!("\n{:?} \n\n-----------",
33-
settings.try_into::<Map<String, String>>().unwrap());
33+
settings.try_into::<HashMap<String, String>>().unwrap());
3434

3535
// Option 3
3636
// --------
@@ -43,7 +43,7 @@ fn main() {
4343
.collect::<Vec<_>>())
4444
.unwrap();
4545

46-
// Print out our settings (as a Map)
46+
// Print out our settings (as a HashMap)
4747
println!("\n{:?} \n\n-----------",
48-
settings.try_into::<Map<String, String>>().unwrap());
48+
settings.try_into::<HashMap<String, String>>().unwrap());
4949
}

0 commit comments

Comments
 (0)