Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 3, 2022
1 parent 5cd06cf commit 90dccc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-repository/src/revision/spec/parse/delegate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl<'repo> delegate::Revision for Delegate<'repo> {
let r = self.refs[self.idx].get_or_insert(head_ref).clone().attach(self.repo);
let mut platform = r.log_iter();
match platform.rev().ok().flatten() {
Some(mut it) => match it.nth(no).map(Result::ok).flatten() {
Some(mut it) => match it.nth(no).and_then(Result::ok) {
Some(line) => {
self.objs[self.idx]
.get_or_insert_with(HashSet::default)
Expand Down

0 comments on commit 90dccc3

Please sign in to comment.