gtk-rs / gtk4-rs

Rust bindings of GTK 4
https://gtk-rs.org/gtk4-rs/
MIT License
1.75k stars 168 forks source link

Remove unnecessary upcast from examples/squeezer_bin/main.rs #1763

Closed mtilda closed 3 weeks ago

mtilda commented 1 month ago

I noticed this example runs as expected even without .upcast::<gtk::Widget>()

I have a limited understanding of the language and libraries. I welcome pedantic feedback.

What I understand is that

Try it yourself

  1. Clone this repository
  2. cd in the examples directory
  3. Run the command cargo run --bin squeezer_bin
mtilda commented 1 month ago

@bilelmoussaoui any thoughts on this? Have you found time to test the change?