Adopt usage of std::cell::LazyCell
and std::sync::LazyLock
#20950
Labels
meta: good first issue
Anything that is good for new contributors.
type: tech debt
A code change that does not add user value.
In Rust 1.80 (https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html)
std::cell::LazyCell
andstd::sync::LazyLock
are finally stabilized and thus they can be used instead of the variants ofonce_cell
crate.I think we could adopt the ones from the std and drop the usage of the
once_cell
crate once #20949 is merged.We should also change this section in the
STYLE.md
file: https://github.com/vectordotdev/vector/blob/master/STYLE.md#global-stateThe text was updated successfully, but these errors were encountered: