From 187766d1e807bb840e3f16a137c8dadd52ba5654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Tue, 10 Sep 2024 17:53:07 +0200 Subject: [PATCH] test: use `Path::display` instead of `to_string_lossy` to render tests paths --- convert-tests/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert-tests/main.rs b/convert-tests/main.rs index 1f52aee..bf18feb 100644 --- a/convert-tests/main.rs +++ b/convert-tests/main.rs @@ -29,7 +29,7 @@ fn main() -> ExitCode { for test_path in tests_paths { let full_test_path = root_path.join(&test_path); tests.push(libtest_mimic::Trial::test( - test_path.to_string_lossy(), + test_path.display().to_string(), move || test::run_test(&full_test_path).map_err(|e| e.into()), )); }