summaryrefslogtreecommitdiffstats
path: root/tests/file_hjson.rs
diff options
context:
space:
mode:
authorAleksey Ivanov <ialexxei@gmail.com>2018-04-09 21:38:29 +0300
committerAleksey Ivanov <ialexxei@gmail.com>2018-04-09 21:40:46 +0300
commit375befa7ddbdb1761611947226a0c117f4c35a5e (patch)
treeffe6f758823f5e9eabf0f0a60a3a5294c1520888 /tests/file_hjson.rs
parent9168bd745f088334005f0c206ff5606fd7a531a0 (diff)
Use `try_into` instead of deprecated `deserialize`
Diffstat (limited to 'tests/file_hjson.rs')
-rw-r--r--tests/file_hjson.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/file_hjson.rs b/tests/file_hjson.rs
index f36843a..f8465be 100644
--- a/tests/file_hjson.rs
+++ b/tests/file_hjson.rs
@@ -43,7 +43,7 @@ fn test_file() {
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()));