Remove once_cell dependency and use LazyLock instead#3971
Remove once_cell dependency and use LazyLock instead#3971rami3l merged 1 commit intorust-lang:masterfrom InfyniteHeap:change-dependency
once_cell dependency and use LazyLock instead#3971Conversation
|
The CI failure might have something to do with CentOS 7's EOL on 2024/06/30. I've always wanted to use |
Ok, and it seems that I have to continue awaiting until this CI issue is resolved... |
rami3l
left a comment
There was a problem hiding this comment.
@InfyniteHeap Looks like the CI is back online. Just squash your commits into one (read more about atomic commits here), and we're good to go.
|
@InfyniteHeap Nice job! |
Since Rust 1.80.0 was released, which brought
LazyCellandLazyLock, plus the only purpose of introducingonce_cellwas to useLazyfor initializations of static variables, it is good to replaceLazywithLazyLock.