diff --git a/src/otel/src/lib.rs b/src/otel/src/lib.rs index 363df4fb5..8e59da864 100644 --- a/src/otel/src/lib.rs +++ b/src/otel/src/lib.rs @@ -36,6 +36,7 @@ pub type nxt_uint_t = usize; // Stored sender channel to send spans or a shutdown message to within the // Tokio runtime. +#[allow(static_mut_refs)] unsafe fn nxt_otel_rs_span_tx(destruct: bool) -> *const OnceLock> { static mut SPAN_TX: OnceLock> = OnceLock::new(); if destruct {