From 933659b0461b8a53cb89caf0984963918fe82b04 Mon Sep 17 00:00:00 2001 From: Simon Hornby Date: Tue, 6 Aug 2024 14:27:36 +0200 Subject: [PATCH] chore: remove warnings as a result of new rust version (#507) * chore: disable tarpaulin warnings * chore: remove unneeded sync-middleware feature --- server/Cargo.toml | 3 +++ server/src/middleware/request_tracing.rs | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/server/Cargo.toml b/server/Cargo.toml index 3d064dc5..133097b6 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -20,6 +20,9 @@ path-guid = "6F606A3B-C7E9-43EC-8B6E-91D7B74F80FC" license = false eula = false +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] } + [dependencies] actix-cors = "0.7.0" actix-http = "3.8.0" diff --git a/server/src/middleware/request_tracing.rs b/server/src/middleware/request_tracing.rs index 6f98024d..e4701241 100644 --- a/server/src/middleware/request_tracing.rs +++ b/server/src/middleware/request_tracing.rs @@ -153,9 +153,6 @@ where let span = self.tracer.build_with_context(builder, &parent_context); let cx = parent_context.with_span(span); - #[cfg(feature = "sync-middleware")] - let attachment = cx.clone().attach(); - let fut = self .service .call(req) @@ -187,9 +184,6 @@ where } }); - #[cfg(feature = "sync-middleware")] - drop(attachment); - Box::pin(fut) } }