Applied clippy suggestions.
This commit is contained in:
@@ -61,7 +61,7 @@ fn build_ui(app: >k::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);
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user