mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
clippy fixes
This commit is contained in:
parent
448b6927c3
commit
b8debcf87f
2 changed files with 2 additions and 3 deletions
|
|
@ -373,7 +373,7 @@ impl App {
|
|||
.filter_map(|c| {
|
||||
if c.show_in_quickbar() {
|
||||
Some(Text::Styled(
|
||||
Cow::from(c.text.name.clone()),
|
||||
Cow::from(c.text.name),
|
||||
if c.enabled {
|
||||
style_enabled
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ impl HelpComponent {
|
|||
let mut selected_line = 0_u16;
|
||||
|
||||
for (key, group) in
|
||||
&self.cmds.iter().group_by(|e| e.text.group.clone())
|
||||
&self.cmds.iter().group_by(|e| e.text.group)
|
||||
{
|
||||
txt.push(Text::Styled(
|
||||
Cow::from(format!(" {}\n", key)),
|
||||
|
|
@ -163,7 +163,6 @@ impl HelpComponent {
|
|||
|
||||
txt.extend(
|
||||
group
|
||||
.into_iter()
|
||||
.sorted_by_key(|e| e.order)
|
||||
.map(|e| {
|
||||
let is_selected = self.selection == processed;
|
||||
|
|
|
|||
Loading…
Reference in a new issue