From 102312efb697b42e734f28629dc7d27c2d6b84a2 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Wed, 29 Apr 2020 19:50:57 -0400 Subject: [PATCH] minor fix in measure! --- src/influx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/influx.rs b/src/influx.rs index b170927..b643902 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -140,7 +140,7 @@ macro_rules! measure { (@kv v, $meas:ident, $k:expr) => { measure!(@ea tag, $meas, "version", $k) }; (@kv $t:tt, $meas:ident, $k:tt) => { measure!(@ea $t, $meas, stringify!($k), measure!(@as_expr $k)) }; (@ea tag, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_tag($k, $v); }; - (@ea t, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_tag($k, &$v); }; + (@ea t, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_tag($k, $v); }; (@ea int, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_field($k, $crate::influx::OwnedValue::Integer(AsI64::as_i64($v))) }; (@ea i, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_field($k, $crate::influx::OwnedValue::Integer(AsI64::as_i64($v))) }; (@ea float, $meas:ident, $k:expr, $v:expr) => { $meas = $meas.add_field($k, $crate::influx::OwnedValue::Float(AsF64::as_f64($v))) };