diff options
author | Caleb Maclennan <caleb@alerque.com> | 2021-03-28 10:59:58 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2021-03-28 20:15:08 +0300 |
commit | 7687476f9b3b478e17e72a63b2a45d12d92e348d (patch) | |
tree | 84a1ef8450f48f199e97131a75a9240910193318 /tests/file_json.rs | |
parent | 225005994d46e634918568b9013cfae82c491a8a (diff) |
Rename get_str() → get_string() to match returned type
Diffstat (limited to 'tests/file_json.rs')
-rw-r--r-- | tests/file_json.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/file_json.rs b/tests/file_json.rs index 2c614e1..b8dcbf0 100644 --- a/tests/file_json.rs +++ b/tests/file_json.rs @@ -60,7 +60,7 @@ fn test_file() { assert_eq!(s.elements.len(), 10); assert_eq!(s.elements[3], "4".to_string()); assert_eq!( - s.place.creator["name"].clone().into_str().unwrap(), + s.place.creator["name"].clone().into_string().unwrap(), "John Smith".to_string() ); } @@ -98,7 +98,7 @@ fn test_json_vec() { let v = c.get_array("WASTE").unwrap(); let mut vi = v.into_iter(); - assert_eq!(vi.next().unwrap().into_str().unwrap(), "example_dir1"); - assert_eq!(vi.next().unwrap().into_str().unwrap(), "example_dir2"); + assert_eq!(vi.next().unwrap().into_string().unwrap(), "example_dir1"); + assert_eq!(vi.next().unwrap().into_string().unwrap(), "example_dir2"); assert!(vi.next().is_none()); } |