News for hackers. Stuff that matters.
Re:Show HN: A first project in Rust – in-memory order book by roblabla on Saturday February 22, 2020 @04:01AM (#22390083)
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/

There are no comments on this comment yet.