rust-lang-nursery / lazy-static.rs

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

Consider updating example to Rust 2018 #120

Closed gnzlbg closed 4 years ago

gnzlbg commented 5 years ago

In Rust2018 using extern crate, etc. is not necessary anymore.

KodrAus commented 5 years ago

Thanks @gnzlbg! We also need to explicitly use lazy_static::lazy_static; macro in the new edition to bring it into scope.

Would you like to submit a PR that makes this change?

kami881 commented 5 years ago

Lazy rocket

kami881 commented 5 years ago

Static lazy rocket

ammgws commented 4 years ago

Is this solved by #159, or is OP referring to the example on crates.io?

image

NickHackman commented 4 years ago

~I'd be happy to take this issue! It's a little past 2018, but better late than never. :+1:~

~I'll link the PR to this issue when I'm done.~

This issue has already been fixed on Master, should be closed

LukasKalbertodt commented 4 years ago

My bad, this is indeed already fixed, just not released on crates.io yet. Closing.

yatesco commented 3 years ago

Just a note that https://crates.io/crates/lazy_static still shows:

image