git: remove redundant id.clone() from diff_refs_to_import()

This commit is contained in:
Yuya Nishihara 2023-08-12 09:10:19 +09:00
parent b837e88757
commit 359c871545

View file

@ -325,7 +325,7 @@ fn diff_refs_to_import(
// TODO: Make it configurable which remotes are publishing and update public
// heads here.
known_git_refs.remove(&ref_name);
let new_target = RefTarget::normal(id.clone());
let new_target = RefTarget::normal(id);
if new_target != *old_target {
changed_git_refs.insert(ref_name, (old_target.clone(), new_target));
}