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 e2b6800 commit f98e049Copy full SHA for f98e049
crates/prof/src/recorder.rs
@@ -21,7 +21,7 @@ pub fn install_prometheus_recorder() -> &'static PrometheusRecorder {
21
/// The default Prometheus recorder handle. We use a global static to ensure that it is only
22
/// installed once.
23
static PROMETHEUS_RECORDER_HANDLE: LazyLock<PrometheusRecorder> =
24
- LazyLock::new(|| PrometheusRecorder::new());
+ LazyLock::new(PrometheusRecorder::new);
25
26
pub struct PrometheusRecorder {
27
handle: Arc<PrometheusHandle>,
0 commit comments