From d7b9bd55e8d65c7b1193b1d9c6bec2690b2e530f Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sat, 2 Jan 2021 19:27:51 -0800 Subject: [PATCH] git: remove unnecessary taking of reference (reported by clippy) --- lib/src/git.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/git.rs b/lib/src/git.rs index 4189003fb..bfa675a57 100644 --- a/lib/src/git.rs +++ b/lib/src/git.rs @@ -129,7 +129,7 @@ pub fn push_commit( git2::Cred::ssh_key_from_agent(username_from_url.unwrap()) }); callbacks.push_update_reference(|refname, status| { - if refname == &qualified_remote_branch && status.is_none() { + if refname == qualified_remote_branch && status.is_none() { updated = true; } Ok(())