fix a small thing

This commit is contained in:
Kiril Videlov 2024-05-30 17:51:27 +02:00
parent 0e7c430d65
commit 909894149f

View File

@ -190,10 +190,7 @@ pub fn branch_to_remote_branch_data(
pub fn commit_to_remote_commit(commit: &git2::Commit) -> RemoteCommit {
let parent_ids: Vec<git::Oid> = commit
.parents()
.map(|c| {
let c: git::Oid = c.id().into();
c
})
.map(|c| git::Oid::from(c.id()))
.collect::<Vec<_>>();
RemoteCommit {
id: commit.id().to_string(),