Skip to content

Commit 00c07e6

Browse files
unhappychoiceclaude
andcommitted
style: apply cargo fmt
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 89da1c5 commit 00c07e6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/git.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,7 @@ impl GitRepository {
365365

366366
// Desc order: newest first (reverse of asc)
367367
let desc_index = commits.len() - 1 - *index;
368-
let selected_oid = commits
369-
.get(desc_index)
370-
.context("Failed to select commit")?;
368+
let selected_oid = commits.get(desc_index).context("Failed to select commit")?;
371369
*index += 1;
372370

373371
let commit = self.repo.find_commit(*selected_oid)?;

src/ui.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ impl<'a> UI<'a> {
210210
match self.order {
211211
PlaybackOrder::Random => repo.random_range_commit(),
212212
PlaybackOrder::Asc => repo.next_range_commit_asc(),
213-
PlaybackOrder::Desc => repo.next_range_commit_desc(),
213+
PlaybackOrder::Desc => {
214+
repo.next_range_commit_desc()
215+
}
214216
}
215217
} else {
216218
match self.order {

0 commit comments

Comments
 (0)