gtk-rs / gtk-rs-core

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

Backport: Update `clone!` and `closure!` macro to new syntax #1441

Closed pbor closed 2 weeks ago

pbor commented 2 weeks ago

This works correctly with rustfmt now, and thanks to using syn correctly also gives much better user experience with rust-analyzer.

Also the closure! macro now supports plain weak references too.

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/1394

sdroege commented 2 weeks ago

Also need to include https://github.com/gtk-rs/gtk-rs-core/pull/1443 once merged