1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-07-01 12:15:08 +02:00

Fix clippy lint

This commit is contained in:
LukeMathWalker
2021-10-27 09:35:30 +01:00
parent 42e690b907
commit fbe847eaad

View File

@ -123,6 +123,10 @@ pub mod private {
pub use tracing;
#[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) {
#[cfg(any(
feature = "opentelemetry_0_13",