lint: remove unnecessary ref

This commit is contained in:
qwjyh 2025-03-02 01:22:16 +09:00
parent 63c6c397c3
commit d86d6fb898

View file

@ -299,7 +299,7 @@ fn push(
ssh_key: Option<&PathBuf>, ssh_key: Option<&PathBuf>,
) -> Result<()> { ) -> Result<()> {
debug!("push"); debug!("push");
let callbacks = remote_callback(&use_sshagent, ssh_key); let callbacks = remote_callback(use_sshagent, ssh_key);
let mut push_options = PushOptions::new(); let mut push_options = PushOptions::new();
push_options.remote_callbacks(callbacks); push_options.remote_callbacks(callbacks);
let num_push_refspecs = remote let num_push_refspecs = remote