From b50be04b43ae15ebb01c8427908bf87905755ae3 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 16 May 2021 22:53:46 -0700 Subject: [PATCH] tests: avoid using `to_internal_string()` to produce FS path --- lib/tests/test_working_copy.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/tests/test_working_copy.rs b/lib/tests/test_working_copy.rs index 3b0be4bec..19d11b7a9 100644 --- a/lib/tests/test_working_copy.rs +++ b/lib/tests/test_working_copy.rs @@ -313,11 +313,7 @@ fn test_gitignores(use_git: bool) { testutils::write_working_copy_file(&repo, &gitignore_path, "ignored\nmodified\nremoved\n"); testutils::write_working_copy_file(&repo, &added_path, "2"); testutils::write_working_copy_file(&repo, &modified_path, "2"); - std::fs::remove_file( - repo.working_copy_path() - .join(removed_path.to_internal_string()), - ) - .unwrap(); + std::fs::remove_file(removed_path.to_fs_path(repo.working_copy_path())).unwrap(); testutils::write_working_copy_file(&repo, &ignored_path, "2"); testutils::write_working_copy_file(&repo, &subdir_modified_path, "2"); testutils::write_working_copy_file(&repo, &subdir_ignored_path, "2");