Skip to content

Commit eb2f671

Browse files
committed
Repository: Reduce visibilities of fields and functions
1 parent 6635def commit eb2f671

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/git.rs

Lines changed: 3 additions & 4 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,10 +179,9 @@ impl RepositoryConfig {
179179
}
180180

181181
pub struct Repository {
182-
/// bla
183-
pub checkout_path: TempDir,
182+
checkout_path: TempDir,
184183
repository: git2::Repository,
185-
pub credentials: Credentials,
184+
credentials: Credentials,
186185
}
187186

188187
impl Repository {

0 commit comments

Comments
 (0)