git: remove unnecessary taking of reference (reported by clippy)

This commit is contained in:
Martin von Zweigbergk 2021-01-02 19:27:51 -08:00
parent e2d6252766
commit d7b9bd55e8

View file

@ -129,7 +129,7 @@ pub fn push_commit(
git2::Cred::ssh_key_from_agent(username_from_url.unwrap()) git2::Cred::ssh_key_from_agent(username_from_url.unwrap())
}); });
callbacks.push_update_reference(|refname, status| { callbacks.push_update_reference(|refname, status| {
if refname == &qualified_remote_branch && status.is_none() { if refname == qualified_remote_branch && status.is_none() {
updated = true; updated = true;
} }
Ok(()) Ok(())