We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb5f56 commit 31383efCopy full SHA for 31383ef
lib/vector-core/src/metrics/recorder.rs
@@ -11,7 +11,7 @@ use super::recency::{GenerationalStorage, Recency};
11
use super::storage::VectorStorage;
12
use crate::event::{Metric, MetricValue};
13
14
-thread_local!(static LOCAL_REGISTRY: OnceCell<Registry> = OnceCell::new());
+thread_local!(static LOCAL_REGISTRY: OnceCell<Registry> = const { OnceCell::new() });
15
16
#[allow(dead_code)]
17
pub(super) struct Registry {
0 commit comments