diff options
author | Nadrieril | 2020-04-05 15:53:15 +0100 |
---|---|---|
committer | Nadrieril | 2020-04-05 15:53:15 +0100 |
commit | 678d254a06dbb75f5398abaacee41d1712bf7194 (patch) | |
tree | 5be94a152e7da973dd7c099fb56022bc45330089 /README.md | |
parent | 6dab8cb06e52efdb18b9dcf975e0a2d50454d704 (diff) |
Make Deserializer functions the only functions
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ use std::collections::BTreeMap; let data = "{ x = 1, y = 1 + 1 } : { x: Natural, y: Natural }"; // Deserialize it to a Rust type. -let deserialized_map: BTreeMap<String, usize> = serde_dhall::from_str(data).unwrap(); +let deserialized_map: BTreeMap<String, usize> = serde_dhall::from_str(data).parse().unwrap(); let mut expected_map = BTreeMap::new(); expected_map.insert("x".to_string(), 1); |