forked from mirrors/jj
tests: remove temporary copy of workspace.repo_path() from TestWorkspace
This commit is contained in:
parent
653e8087da
commit
cf4a7e34b9
1 changed files with 1 additions and 4 deletions
|
@ -211,7 +211,6 @@ pub struct TestWorkspace {
|
||||||
temp_dir: TempDir,
|
temp_dir: TempDir,
|
||||||
pub workspace: Workspace,
|
pub workspace: Workspace,
|
||||||
pub repo: Arc<ReadonlyRepo>,
|
pub repo: Arc<ReadonlyRepo>,
|
||||||
repo_path: PathBuf,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TestWorkspace {
|
impl TestWorkspace {
|
||||||
|
@ -244,13 +243,11 @@ impl TestWorkspace {
|
||||||
signer,
|
signer,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let repo_path = workspace.repo_path().to_owned();
|
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
temp_dir,
|
temp_dir,
|
||||||
workspace,
|
workspace,
|
||||||
repo,
|
repo,
|
||||||
repo_path,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +256,7 @@ impl TestWorkspace {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn repo_path(&self) -> &Path {
|
pub fn repo_path(&self) -> &Path {
|
||||||
&self.repo_path
|
self.workspace.repo_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Snapshots the working copy and returns the tree. Updates the working
|
/// Snapshots the working copy and returns the tree. Updates the working
|
||||||
|
|
Loading…
Reference in a new issue