Skip to content

Commit

Permalink
style: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Apr 27, 2024
1 parent 6814353 commit 5618dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ impl App {
self.scs
.groups
.iter()
.map(|group| &group.items)
.flatten()
.flat_map(|group| &group.items)
.collect::<Vec<&SshGroupItem>>()
}

Expand Down
3 changes: 1 addition & 2 deletions src/widgets/config_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ impl ConfigWidget {
let spans: Vec<Spans> = app
.get_all_items()
.iter()
.map(|item| ConfigWidget::ssh_group_item_to_spans(item))
.flatten()
.flat_map(|item| ConfigWidget::ssh_group_item_to_spans(item))
.collect();

Paragraph::new(spans)
Expand Down

0 comments on commit 5618dd0

Please sign in to comment.