Minor cleanup of nested match/if let statements into using and_then().

This commit is contained in:
Jordan Petridis
2017-12-04 14:32:16 +02:00
parent 8bd48a09a6
commit 276169e43d
2 changed files with 15 additions and 20 deletions
+1 -2
View File
@@ -1,8 +1,6 @@
use gtk;
use gtk::prelude::*;
// use gdk_pixbuf::Pixbuf;
// use diesel::associations::Identifiable;
use hammond_data::Podcast;
use widgets::podcast::PodcastWidget;
@@ -89,6 +87,7 @@ fn replace_podcasts(stack: &gtk::Stack, pop: &PopulatedView) {
// old.destroy();
// }
#[allow(dead_code)]
pub fn show_widget(stack: &gtk::Stack) {
stack.set_visible_child_name("widget")
}