From ead385ddaeddf2ddaf1222fde5032a2458203ecd Mon Sep 17 00:00:00 2001 From: Arun Pidugu Date: Wed, 14 Aug 2024 14:17:36 -0400 Subject: [PATCH] formatting --- src/transforms/remap.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/transforms/remap.rs b/src/transforms/remap.rs index cdb35646673e4..28b1ae5a796a8 100644 --- a/src/transforms/remap.rs +++ b/src/transforms/remap.rs @@ -478,8 +478,7 @@ where fn annotate_dropped(&self, event: &mut Event, reason: &str, error: ExpressionError) { match event { - Event::Log(ref mut log) => { - match log.namespace() { + Event::Log(ref mut log) => match log.namespace() { LogNamespace::Legacy => { if let Some(metadata_key) = log_schema().metadata_key() { log.insert( @@ -494,7 +493,7 @@ where self.dropped_data(reason, error), ); } - }}, + }, Event::Metric(ref mut metric) => { if let Some(metadata_key) = log_schema().metadata_key() { metric.replace_tag(format!("{}.dropped.reason", metadata_key), reason.into());