diff options
author | Alex Widener <3489076+boredstiff@users.noreply.github.com> | 2019-01-02 16:45:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-02 16:45:15 -0800 |
commit | f81c1ed2571a9754e000e4ccc09c023de22ba30e (patch) | |
tree | dcf25dc44fc409b32a3b2cf5aa3ed29b200aac76 | |
parent | 05bc8dee889dd95663a3441bd58fb5abdf322d9e (diff) |
Update example deprecated method
Update deprecated `deserialize` to use the preferred `try_into`.
-rw-r--r-- | examples/simple/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple/src/main.rs b/examples/simple/src/main.rs index fb66e03..7e7ca31 100644 --- a/examples/simple/src/main.rs +++ b/examples/simple/src/main.rs @@ -13,5 +13,5 @@ fn main() { // Print out our settings (as a HashMap) println!("{:?}", - settings.deserialize::<HashMap<String, String>>().unwrap()); + settings.try_into::<HashMap<String, String>>().unwrap()); } |