3 ms·
Instead of lazy static, use once_cell’s Lazy type[0]! It is a replacement that does away with the macro-based approach, possible thanks to improvements in const
by roblabla 7y ago
Instead of lazy static, use once_cell’s Lazy type[0]! It is a replacement that does away with the macro-based approach, possible thanks to improvements in const fn. This leads to improved IDE experience.
[0] https://docs.rs/once_cell/1.3.1/once_cell/ https://docs.rs/once_cell/1.3.1/once_cell/