Skip to content

Commit c0d974b

Browse files
committed
refactor: private StupidContext members
1 parent ebb7eec commit c0d974b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stupid/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ impl<'repo, 'index> Stupid<'repo, 'index> for gix::Repository {
5050
/// Context for running stupid commands.
5151
#[derive(Clone, Debug, Default)]
5252
pub(crate) struct StupidContext<'repo, 'index> {
53-
pub git_dir: Option<&'repo Path>,
54-
pub index_path: Option<&'index Path>,
55-
pub work_dir: Option<&'repo Path>,
53+
git_dir: Option<&'repo Path>,
54+
work_dir: Option<&'repo Path>,
55+
index_path: Option<&'index Path>,
5656
git_version: RefCell<Option<StupidVersion>>,
5757
}
5858

@@ -77,8 +77,8 @@ impl<'repo, 'index> StupidContext<'repo, 'index> {
7777
.tempfile_in(temp_index_root)?;
7878
let stupid_temp = StupidContext {
7979
git_dir: self.git_dir,
80-
index_path: Some(index_tempfile.path()),
8180
work_dir: self.work_dir,
81+
index_path: Some(index_tempfile.path()),
8282
git_version: RefCell::new(None),
8383
};
8484

0 commit comments

Comments
 (0)