Skip to content

Commit 62b9a44

Browse files
committed
fix: resolve clippy sort_by_key warning in history manager
1 parent 7633e11 commit 62b9a44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl HistoryManager {
9292
}
9393
}
9494
}
95-
history.sort_by(|a, b| b.id.cmp(&a.id));
95+
history.sort_by_key(|b| std::cmp::Reverse(b.id));
9696
history
9797
}
9898
}

0 commit comments

Comments
 (0)