Commit 54b81b9a authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Use and_downcast where possible

parent 32c01173
......@@ -33,7 +33,7 @@ mod imp {
let obj = self.obj();
let layout_manager = obj
.layout_manager()
.map(|l| l.downcast::<gtk::BoxLayout>().unwrap())
.and_downcast::<gtk::BoxLayout>()
.unwrap();
layout_manager.set_orientation(gtk::Orientation::Vertical);
obj.add_css_class("page");
......
......@@ -47,7 +47,7 @@ mod imp {
let obj = self.obj();
let layout_manager = obj
.layout_manager()
.map(|l| l.downcast::<gtk::BoxLayout>().unwrap())
.and_downcast::<gtk::BoxLayout>()
.unwrap();
layout_manager.set_orientation(gtk::Orientation::Vertical);
self.carousel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment