mirror of
https://github.com/actix/actix-extras.git
synced 2025-07-01 20:25:09 +02:00
Fix clippy lint
This commit is contained in:
@ -123,6 +123,10 @@ pub mod private {
|
|||||||
pub use tracing;
|
pub use tracing;
|
||||||
|
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
|
// We need to allow unused variables because the function
|
||||||
|
// body is empty if the user of the library chose not to activate
|
||||||
|
// any OTEL feature.
|
||||||
|
#[allow(unused_variables)]
|
||||||
pub fn set_otel_parent(req: &ServiceRequest, span: &tracing::Span) {
|
pub fn set_otel_parent(req: &ServiceRequest, span: &tracing::Span) {
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
feature = "opentelemetry_0_13",
|
feature = "opentelemetry_0_13",
|
||||||
|
Reference in New Issue
Block a user