From 6230a8f96c5298e2dafb09973df584ac32b69717 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Mon, 3 Jun 2024 10:56:13 +0200 Subject: [PATCH] fix clippy --- src/filter/http_context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filter/http_context.rs b/src/filter/http_context.rs index ebb27f1a..62259b67 100644 --- a/src/filter/http_context.rs +++ b/src/filter/http_context.rs @@ -237,11 +237,11 @@ impl HttpContext for Filter { info!("on_http_request_headers #{}", self.context_id); for header in TracingHeader::all() { - match self.get_http_request_header_bytes(header.as_str()) { - Some(value) => self.tracing_headers.push((header, value)), - None => (), + if let Some(value) = self.get_http_request_header_bytes(header.as_str()) { + self.tracing_headers.push((header, value)) } } + match self .config .index