Applied clippy suggestions.

This commit is contained in:
Jordan Petridis
2017-10-30 13:15:44 +02:00
parent ac80ab04d4
commit 25344aa613
4 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -111,10 +111,10 @@ pub fn podcast_widget(
if let Some(t) = title {
let tempdb = db.lock().unwrap();
let parent = dbqueries::load_podcast_from_title(&tempdb, &t).unwrap();
let parent = dbqueries::load_podcast_from_title(&tempdb, t).unwrap();
let f = dbqueries::get_pd_unplayed_episodes(&tempdb, &parent);
if let Ok(l) = f {
if l.len() > 0 {
if !l.is_empty() {
played_button.show()
}
}