From 79f5254c3926431063d0b2d6ffbd8154984a22ef Mon Sep 17 00:00:00 2001 From: rdkt13 Date: Mon, 7 Sep 2020 23:37:59 +0200 Subject: Use `display` method on PathBuf in tests --- tests/file_yaml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/file_yaml.rs') diff --git a/tests/file_yaml.rs b/tests/file_yaml.rs index efc2908..8f7814e 100644 --- a/tests/file_yaml.rs +++ b/tests/file_yaml.rs @@ -76,6 +76,6 @@ fn test_error_parse() { assert_eq!( res.unwrap_err().to_string(), format!("while parsing a block mapping, did not find expected key at \ - line 2 column 1 in {}", path_with_extension.to_str().unwrap()) + line 2 column 1 in {}", path_with_extension.display()) ); } -- cgit v1.2.3