summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-08-05 02:03:30 -0700
committerRyan Leckey <leckey.ryan@gmail.com>2017-08-05 02:03:37 -0700
commit971ce0f285dd06a618711eba8e8ed1ae7c814294 (patch)
treec2c4a49f01f89e3d9e3a9b12e02514bc183faa0e /tests
parentcb4888dbbd3f2ebd1bd4e35fb07fb2fe0facafe8 (diff)
Fix tests and put back .deserialize as deprecated0.7.0
Diffstat (limited to 'tests')
-rw-r--r--tests/get.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/get.rs b/tests/get.rs
index 995f73c..517339e 100644
--- a/tests/get.rs
+++ b/tests/get.rs
@@ -132,7 +132,7 @@ fn test_map_struct() {
}
let c = make();
- let s: Settings = c.deserialize().unwrap();
+ let s: Settings = c.try_into().unwrap();
assert_eq!(s.place.len(), 7);
assert_eq!(
@@ -147,7 +147,7 @@ fn test_file_struct() {
let c = make();
// Deserialize the entire file as single struct
- let s: Settings = c.deserialize().unwrap();
+ let s: Settings = c.try_into().unwrap();
assert!(s.debug.approx_eq_ulps(&1.0, 2));
assert_eq!(s.production, Some("false".to_string()));
@@ -195,7 +195,7 @@ fn test_struct_array() {
}
let c = make();
- let s: Settings = c.deserialize().unwrap();
+ let s: Settings = c.try_into().unwrap();
assert_eq!(s.elements.len(), 10);
assert_eq!(s.elements[3], "4".to_string());