From cf4a7e34b951593f609e67094c8d54b82d3b4564 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 8 Sep 2024 04:45:25 +0900 Subject: [PATCH] tests: remove temporary copy of workspace.repo_path() from TestWorkspace --- lib/testutils/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/testutils/src/lib.rs b/lib/testutils/src/lib.rs index 198dad18e..ae74b427e 100644 --- a/lib/testutils/src/lib.rs +++ b/lib/testutils/src/lib.rs @@ -211,7 +211,6 @@ pub struct TestWorkspace { temp_dir: TempDir, pub workspace: Workspace, pub repo: Arc, - repo_path: PathBuf, } impl TestWorkspace { @@ -244,13 +243,11 @@ impl TestWorkspace { signer, ) .unwrap(); - let repo_path = workspace.repo_path().to_owned(); Self { temp_dir, workspace, repo, - repo_path, } } @@ -259,7 +256,7 @@ impl TestWorkspace { } pub fn repo_path(&self) -> &Path { - &self.repo_path + self.workspace.repo_path() } /// Snapshots the working copy and returns the tree. Updates the working