-
Notifications
You must be signed in to change notification settings - Fork 772
Closed
Description
Originally we used lazy_static in ring::rand
because static
didn't work for types that implement Drop
, as File
does. That restriction was removed in rust-lang/rust#44456. I believe it should now be possible to get the same effects using just std::sync::Once
.
I see there are some (potential) problems with lazy_static!
such as rust-lang-nursery/lazy-static.rs#116 and rust-lang-nursery/lazy-static.rs#117 and rust-lang-nursery/lazy-static.rs#125.
sanmai-NL