Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Feb 29, 2024
1 parent 92ec46e commit 5f2a152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ pub async fn load(
LoadType::Sorting => NyaaHtmlSource::sort(app, w).await,
LoadType::Filtering => NyaaHtmlSource::filter(app, w).await,
LoadType::Categorizing => NyaaHtmlSource::categorize(app, w).await,
LoadType::Downloading => return Ok(w.results.table.items.clone()),
LoadType::Downloading => Ok(w.results.table.items.clone()),
},
Sources::NyaaRss => match load_type {
LoadType::Searching => NyaaRssSource::search(app, w).await,
LoadType::Sorting => NyaaRssSource::sort(app, w).await,
LoadType::Filtering => NyaaRssSource::filter(app, w).await,
LoadType::Categorizing => NyaaRssSource::categorize(app, w).await,
LoadType::Downloading => return Ok(w.results.table.items.clone()),
LoadType::Downloading => Ok(w.results.table.items.clone()),
},
}
}
2 changes: 1 addition & 1 deletion src/widget/category.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl Widget for CategoryPopup {
}
}
KeyCode::Char('k') | KeyCode::Up => {
if let Some(_) = ALL_CATEGORIES.get(self.major) {
if ALL_CATEGORIES.get(self.major).is_some() {
self.minor = match self.minor < 1 {
true => {
self.prev_tab();
Expand Down

0 comments on commit 5f2a152

Please sign in to comment.