diff options
author | Ryan Leckey <leckey.ryan@gmail.com> | 2017-08-05 02:03:30 -0700 |
---|---|---|
committer | Ryan Leckey <leckey.ryan@gmail.com> | 2017-08-05 02:03:37 -0700 |
commit | 971ce0f285dd06a618711eba8e8ed1ae7c814294 (patch) | |
tree | c2c4a49f01f89e3d9e3a9b12e02514bc183faa0e /examples | |
parent | cb4888dbbd3f2ebd1bd4e35fb07fb2fe0facafe8 (diff) |
Fix tests and put back .deserialize as deprecated0.7.0
Diffstat (limited to 'examples')
-rw-r--r-- | examples/glob/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/glob/src/main.rs b/examples/glob/src/main.rs index f88f1ed..112335c 100644 --- a/examples/glob/src/main.rs +++ b/examples/glob/src/main.rs @@ -19,7 +19,7 @@ fn main() { // Print out our settings (as a HashMap) println!("\n{:?} \n\n-----------", - settings.deserialize::<HashMap<String, String>>().unwrap()); + settings.try_into::<HashMap<String, String>>().unwrap()); // Option 2 // -------- @@ -33,7 +33,7 @@ fn main() { // Print out our settings (as a HashMap) println!("\n{:?} \n\n-----------", - settings.deserialize::<HashMap<String, String>>().unwrap()); + settings.try_into::<HashMap<String, String>>().unwrap()); // Option 3 // -------- @@ -48,5 +48,5 @@ fn main() { // Print out our settings (as a HashMap) println!("\n{:?} \n\n-----------", - settings.deserialize::<HashMap<String, String>>().unwrap()); + settings.try_into::<HashMap<String, String>>().unwrap()); } |