diff --git a/lib/vector-core/src/metrics/recorder.rs b/lib/vector-core/src/metrics/recorder.rs index 0f2be44837f89..20a8853963fd8 100644 --- a/lib/vector-core/src/metrics/recorder.rs +++ b/lib/vector-core/src/metrics/recorder.rs @@ -11,7 +11,7 @@ use super::recency::{GenerationalStorage, Recency}; use super::storage::VectorStorage; use crate::event::{Metric, MetricValue}; -thread_local!(static LOCAL_REGISTRY: OnceCell = OnceCell::new()); +thread_local!(static LOCAL_REGISTRY: OnceCell = const { OnceCell::new() }); #[allow(dead_code)] pub(super) struct Registry {