From 63e4b6f158c3647317f2f14e9942cf88929f110a Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Thu, 4 Nov 2021 06:21:24 +0300 Subject: [PATCH] +send --- src/datasources/grafana.rs | 2 +- src/datasources/grafana/prometheus.rs | 2 +- src/datasources/influx.rs | 2 +- src/datasources/prometheus.rs | 2 +- src/metric.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/datasources/grafana.rs b/src/datasources/grafana.rs index f4480a2..a9d5e70 100644 --- a/src/datasources/grafana.rs +++ b/src/datasources/grafana.rs @@ -118,7 +118,7 @@ impl Metric for Grafana { Ok(r) } - fn boxed_clone(&self) -> Box { + fn boxed_clone(&self) -> Box { return Box::new(self.clone()); } } diff --git a/src/datasources/grafana/prometheus.rs b/src/datasources/grafana/prometheus.rs index 5707537..86c60d6 100644 --- a/src/datasources/grafana/prometheus.rs +++ b/src/datasources/grafana/prometheus.rs @@ -63,7 +63,7 @@ impl Metric for Prometheus { return prometheus::parse_result(value); } - fn boxed_clone(&self) -> Box { + fn boxed_clone(&self) -> Box { return Box::new(self.clone()); } } diff --git a/src/datasources/influx.rs b/src/datasources/influx.rs index 5aad531..edb0149 100644 --- a/src/datasources/influx.rs +++ b/src/datasources/influx.rs @@ -90,7 +90,7 @@ impl Metric for Influx { return parse_result(value); } - fn boxed_clone(&self) -> Box { + fn boxed_clone(&self) -> Box { return Box::new(self.clone()); } } diff --git a/src/datasources/prometheus.rs b/src/datasources/prometheus.rs index 30a5fa7..b8ddd00 100644 --- a/src/datasources/prometheus.rs +++ b/src/datasources/prometheus.rs @@ -98,7 +98,7 @@ impl Metric for Prometheus { return parse_result(value); } - fn boxed_clone(&self) -> Box { + fn boxed_clone(&self) -> Box { return Box::new(self.clone()); } } diff --git a/src/metric.rs b/src/metric.rs index a1a1d59..f6c93fc 100644 --- a/src/metric.rs +++ b/src/metric.rs @@ -59,7 +59,7 @@ impl Default for MetricResult { #[async_trait] pub trait Metric { - fn boxed_clone(&self) -> Box; + fn boxed_clone(&self) -> Box; // (to - from) / step < 10000 async fn query_chunk(&self, from: u64, to: u64, step: u64) -> types::Result;