We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e43cd9 commit 5aba426Copy full SHA for 5aba426
2 files changed
src/cli.rs
@@ -36,7 +36,9 @@ pub struct Args {
36
37
#[derive(Debug, Subcommand)]
38
pub enum Commands {
39
- Show { reference: String },
+ Show {
40
+ reference: String,
41
+ },
42
Blame {
43
file: String,
44
#[clap(short, long)]
src/picker.rs
@@ -204,7 +204,7 @@ impl PickerState {
204
.collect();
205
206
// Sort by score (higher is better)
207
- matches.sort_by(|a, b| b.score.cmp(&a.score));
+ matches.sort_by_key(|b| std::cmp::Reverse(b.score));
208
209
self.filtered_indices = matches.into_iter().map(|m| m.index).collect();
210
0 commit comments