rust-lang-nursery / lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust.
Apache License 2.0
1.9k stars 108 forks source link

Add a mutex_map example #173

Closed paulkernfeld closed 3 years ago

paulkernfeld commented 4 years ago

Fixes #128

paulkernfeld commented 4 years ago

I added an example showing how to use lazy_static for a mutable map. The only slightly weird bit is that I needed to change the Travis tests to not run the example for Rust 1.27.2. I notice that the doctests also don't run or pass for Rust 1.27.2, so I figured that would be the preferred solution.

paulkernfeld commented 3 years ago

Hey @LukasKalbertodt, do you know who could review this PR?