Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 61d2bad

Browse files
authored
Fix clippy error for Rust 1.89.0
Closes #210
1 parent 4045841 commit 61d2bad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/checkout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const REMOTE_BASE_URL: &str = "git@github.com";
2121
const ENV_HOME: &str = "HOME";
2222
const ENV_SSH_PASSPHRASE: &str = "SSH_PASSPHRASE";
2323

24-
fn callbacks(ssh: &str) -> Result<RemoteCallbacks> {
24+
fn callbacks(ssh: &str) -> Result<RemoteCallbacks<'_>> {
2525
let mut callbacks = RemoteCallbacks::new();
2626
let ssh_path = Path::new(&var(ENV_HOME)?).join(ssh);
2727
let passphrase = std::env::var(ENV_SSH_PASSPHRASE).ok();
@@ -36,7 +36,7 @@ fn callbacks(ssh: &str) -> Result<RemoteCallbacks> {
3636
Ok(callbacks)
3737
}
3838

39-
fn fetchoption(ssh: &str) -> Result<FetchOptions> {
39+
fn fetchoption(ssh: &str) -> Result<FetchOptions<'_>> {
4040
let mut fo = git2::FetchOptions::new();
4141
fo.remote_callbacks(callbacks(ssh)?);
4242
Ok(fo)

0 commit comments

Comments
 (0)