Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 2, 2022
1 parent ac2105f commit df83e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-repository/src/revision/spec/parse/delegate.rs
Expand Up @@ -310,7 +310,7 @@ impl<'repo> delegate::Navigate for Delegate<'repo> {
}
})
}) {
Ok(commit) => match commit.parent_ids().skip(num.saturating_sub(1)).next() {
Ok(commit) => match commit.parent_ids().nth(num.saturating_sub(1)) {
Some(id) => replacements.push((commit.id, id.detach())),
None => errors.push((
commit.id,
Expand Down

0 comments on commit df83e23

Please sign in to comment.