Skip to content

Commit 4c63e20

Browse files
committed
Repository: Reduce visibilities of fields and functions
1 parent e366c06 commit 4c63e20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/git.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Credentials {
6666
/// - If non-SSH credentials are use, `Err` is returned.
6767
/// - If creation of the temporary file fails, `Err` is returned.
6868
///
69-
pub fn write_temporary_ssh_key(&self) -> anyhow::Result<tempfile::TempPath> {
69+
fn write_temporary_ssh_key(&self) -> anyhow::Result<tempfile::TempPath> {
7070
let key = match self {
7171
Credentials::Ssh { key } => key,
7272
_ => return Err(anyhow!("SSH key not available")),
@@ -179,9 +179,9 @@ impl RepositoryConfig {
179179
}
180180

181181
pub struct Repository {
182-
pub checkout_path: TempDir,
182+
checkout_path: TempDir,
183183
repository: git2::Repository,
184-
pub credentials: Credentials,
184+
credentials: Credentials,
185185
}
186186

187187
impl Repository {

0 commit comments

Comments
 (0)