mirror of
https://github.com/martinvonz/jj.git
synced 2024-10-04 01:17:54 +03:00
tests: remove temporary copy of workspace.repo_path() from TestWorkspace
This commit is contained in:
parent
653e8087da
commit
cf4a7e34b9
@ -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 New Issue
Block a user