diff --git a/examples/squeezer_bin/main.rs b/examples/squeezer_bin/main.rs index ae61af9b0c9e..026d2fe312d2 100644 --- a/examples/squeezer_bin/main.rs +++ b/examples/squeezer_bin/main.rs @@ -14,9 +14,7 @@ fn main() -> glib::ExitCode { let mode_switch = gtk::Switch::new(); let switch_label = gtk::Label::new(Some("keep aspect ratio")); let squeezer = SqueezerBin::default(); - squeezer.set_child(Some( - gtk::Label::new(Some("Hello World!")).upcast::(), - )); + squeezer.set_child(Some(gtk::Label::new(Some("Hello World!")))); headerbar.pack_start(&mode_switch); headerbar.pack_start(&switch_label);