-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace lazy_static with LazyLock #5716
Replace lazy_static with LazyLock #5716
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty!
I think we can remove the one and only OnceLock
and replace this with a LazyLock
as well :D
d59183d
to
a9cc6d1
Compare
static MSG: OnceLock<InboundDownwardMessage> = OnceLock::new(); | ||
MSG.get_or_init(|| InboundDownwardMessage { sent_at: 1, msg: b"down".to_vec() }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need at all that this is OnceLock
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@programskillforverification after this is done, we can merge it.
cbe75dd
to
1196349
Compare
a8d8596
# Description close #5641 --------- Co-authored-by: Bastian Köcher <git@kchr.de>
Description
close #5641