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
+1 -1
View File
@@ -61,7 +61,7 @@ fn build_ui(app: &gtk::Application) {
});
app.add_action(&quit);
let db2 = db.clone();
let db2 = Arc::clone(&db);
let check = gio::SimpleAction::new("check", None);
check.connect_activate(move |_, _| {
let _ = dbcheckup::run(&db2);
+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()
}
}