From 86cbc21f915d8e87a8eece09b5382f024a054075 Mon Sep 17 00:00:00 2001 From: Tilda <63630918+mtilda@users.noreply.github.com> Date: Sun, 2 Jun 2024 15:04:59 -0400 Subject: [PATCH] Remove unnecessary upcast from examples/squeezer_bin/main.rs --- examples/squeezer_bin/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);