gtk-rs / gtk-rs-core

Rust bindings for GNOME libraries
https://gtk-rs.org/gtk-rs-core
MIT License
293 stars 115 forks source link

Use rust 1.79 implied supertraits to simplify trait bounds #1529

Closed felinira closed 1 month ago

felinira commented 1 month ago

This removes a lot of the boilerplate introduced by #1519 by using supertraits instead of where clauses. Supertraits are allowed to imply their trait bounds since rust 1.79.

This bumps MSRV to 1.80.

IMO it's easier to review this against d8dfa3a26184e7c6010744233fe5cc516310438e than master, as it reverts most of what that's doing.

sdroege commented 1 month ago

IMO it's easier to review this against d8dfa3a than master, as it reverts most of what that's doing.

https://github.com/felinira/gtk-rs-core/compare/d8dfa3a26184e7c6010744233fe5cc516310438e...wip/implied-supertraits