summaryrefslogtreecommitdiffstats
path: root/tests/file_hjson.rs
diff options
context:
space:
mode:
authorrdkt13 <rdkt13@gmail.com>2020-09-07 23:37:59 +0200
committerrdkt13 <rdkt13@gmail.com>2020-09-07 23:37:59 +0200
commit79f5254c3926431063d0b2d6ffbd8154984a22ef (patch)
treeee483b62c1267492b74135ef5fd49a52439fbd7d /tests/file_hjson.rs
parent53b8bf74381dc292834a356e4a760755d64fc60e (diff)
Use `display` method on PathBuf in tests
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 1e99b87..70d7ca0 100644
--- a/tests/file_hjson.rs
+++ b/tests/file_hjson.rs
@@ -75,6 +75,6 @@ fn test_error_parse() {
assert!(res.is_err());
assert_eq!(
res.unwrap_err().to_string(),
- format!("Found a punctuator where a key name was expected (check your syntax or use quotes if the key name includes {{}}[],: or whitespace) at line 4 column 1 in {}", path.to_str().unwrap())
+ format!("Found a punctuator where a key name was expected (check your syntax or use quotes if the key name includes {{}}[],: or whitespace) at line 4 column 1 in {}", path.display())
);
}