From e250151a29ead5c1330d376416180f5aca2ae22c Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Mon, 25 Nov 2024 15:56:33 +0100 Subject: [PATCH] fix macro --- src/macros/event_with_options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros/event_with_options.rs b/src/macros/event_with_options.rs index 851081f..f6c15f8 100644 --- a/src/macros/event_with_options.rs +++ b/src/macros/event_with_options.rs @@ -18,13 +18,13 @@ macro_rules! event_with_options { $crate::Datadog::event_with_options($stat.as_ref(), $text, &[$(::core::concat!($key, ":", $value)), *], None); }; ($stat:path, $text:expr, $options:expr; $( $key:literal => $value:literal ), *) => { - $crate::Datadog::event_with_options($stat.as_ref(), $text, &[$(::core::concat!($key, ":", $value)), *], Some(options)); + $crate::Datadog::event_with_options($stat.as_ref(), $text, &[$(::core::concat!($key, ":", $value)), *], Some($options)); }; ($stat:expr, $text:expr; $( $key:literal => $value:literal ), *) => { $crate::Datadog::event_with_options($stat, $text, &[$(::core::concat!($key, ":", $value)), *], None); }; ($stat:expr, $text:expr, $options:expr; $( $key:literal => $value:literal ), *) => { - $crate::Datadog::event_with_options($stat, $text, &[$(::core::concat!($key, ":", $value)), *], Some(options)); + $crate::Datadog::event_with_options($stat, $text, &[$(::core::concat!($key, ":", $value)), *], Some($options)); }; ($stat:path, $text:expr; $( $key:expr => $value:expr ), *) => { $crate::Datadog::event_with_options($stat.as_ref(), $text, &[$(::std::format!("{}:{}", $key, $value).as_str()), *], None);