Skip to content

Commit

Permalink
Fix: Import HashMap instead of Map
Browse files Browse the repository at this point in the history
I didn't catch that when merging PR rust-cli#217.

Fixes: be82af2 ("Rename MapImpl to Map")
Fixes: 0d3a5c3 ("Merge pull request rust-cli#217 from dlo9/master")
Signed-off-by: Matthias Beyer <[email protected]>
  • Loading branch information
matthiasbeyer committed Aug 21, 2021
1 parent 63fc25b commit 30c2c0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/simple/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::Map;
use std::collections::HashMap;

fn main() {
let mut settings = config::Config::default();
Expand All @@ -9,7 +9,7 @@ fn main() {
// Eg.. `APP_DEBUG=1 ./target/app` would set the `debug` key
.merge(config::Environment::with_prefix("APP")).unwrap();

// Print out our settings (as a Map)
// Print out our settings (as a HashMap)
println!("{:?}",
settings.try_into::<Map<String, String>>().unwrap());
settings.try_into::<HashMap<String, String>>().unwrap());
}

0 comments on commit 30c2c0e

Please sign in to comment.