diff options
author | rdkt13 <rdkt13@gmail.com> | 2020-09-07 23:37:59 +0200 |
---|---|---|
committer | rdkt13 <rdkt13@gmail.com> | 2020-09-07 23:37:59 +0200 |
commit | 79f5254c3926431063d0b2d6ffbd8154984a22ef (patch) | |
tree | ee483b62c1267492b74135ef5fd49a52439fbd7d /tests/errors.rs | |
parent | 53b8bf74381dc292834a356e4a760755d64fc60e (diff) |
Use `display` method on PathBuf in tests
Diffstat (limited to 'tests/errors.rs')
-rw-r--r-- | tests/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/errors.rs b/tests/errors.rs index 159473e..3a626c7 100644 --- a/tests/errors.rs +++ b/tests/errors.rs @@ -26,7 +26,7 @@ fn test_error_parse() { assert!(res.is_err()); assert_eq!( res.unwrap_err().to_string(), - format!("failed to parse datetime for key `error` at line 2 column 9 in {}", path.to_str().unwrap()) + format!("failed to parse datetime for key `error` at line 2 column 9 in {}", path.display()) ); } @@ -41,7 +41,7 @@ fn test_error_type() { assert!(res.is_err()); assert_eq!( res.unwrap_err().to_string(), - format!("invalid type: string \"fals\", expected a boolean for key `boolean_s_parse` in {}", path.to_str().unwrap()) + format!("invalid type: string \"fals\", expected a boolean for key `boolean_s_parse` in {}", path.display()) ); } |