gtk-rs-core
gtk-rs-core copied to clipboard
Use once_cell::Lazy instead of std::sync::Once
See summary. Simpler and less easy to get wrong.
I was sure we were already using it...
git grep Once src
:P
Your knowledge is too huge for me to handle. :p
Requires re-exporting once_cell from glib though, it's used by a macro. So maybe something for once this is merged into std :)
This is only used in glib-macros, should we still port to once_cell even if we want to potentially get rid of it in the future?
glib already re-exports once_cell
or not?
Yes it does