Skip to content

Commit 5aba426

Browse files
committed
linting and formatting
1 parent 4e43cd9 commit 5aba426

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/cli.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ pub struct Args {
3636

3737
#[derive(Debug, Subcommand)]
3838
pub enum Commands {
39-
Show { reference: String },
39+
Show {
40+
reference: String,
41+
},
4042
Blame {
4143
file: String,
4244
#[clap(short, long)]

src/picker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl PickerState {
204204
.collect();
205205

206206
// Sort by score (higher is better)
207-
matches.sort_by(|a, b| b.score.cmp(&a.score));
207+
matches.sort_by_key(|b| std::cmp::Reverse(b.score));
208208

209209
self.filtered_indices = matches.into_iter().map(|m| m.index).collect();
210210

0 commit comments

Comments
 (0)