Skip to content

Commit

Permalink
apply clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
micielski committed Aug 20, 2024
1 parent 27a1259 commit 9712cd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rm-main/src/tui/components/tabs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Component for TabComponent {
let tabs = if CONFIG.general.beginner_mode {
["1. Torrents", "2. Search"]
} else {
["1. Torrents", "2. Search"]
["Torrents", "Search"]
};

tabs.concat().chars().count() + divider.len() + self.tabs_list.len()
Expand Down
4 changes: 2 additions & 2 deletions rm-main/src/tui/tabs/torrents/rustmission_torrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl RustmissionTorrent {
}
}
}
Header::Category => match self.categories.get(0) {
Header::Category => match self.categories.first() {
Some(category) => {
if let Some(config_category) = CONFIG.categories.get(category) {
Cell::from(category.as_str()).fg(config_category.color)
Expand All @@ -187,7 +187,7 @@ impl RustmissionTorrent {
}
None => Cell::default(),
},
Header::CategoryIcon => match self.categories.get(0) {
Header::CategoryIcon => match self.categories.first() {
Some(category) => {
if let Some(config_category) = CONFIG.categories.get(category) {
Cell::from(config_category.icon.as_str()).fg(config_category.color)
Expand Down

0 comments on commit 9712cd8

Please sign in to comment.