diff --git a/src/main.rs b/src/main.rs index aaeef9b..451de38 100644 --- a/src/main.rs +++ b/src/main.rs @@ -242,7 +242,11 @@ async fn run() -> Result<(), Error> { for metric in metrics { let metric_bytes = metric.write_to_bytes().expect("Could not serialize metric"); - let appsignal_response = reqwest_client.post(url.clone()).body(metric_bytes).send().await?; + let appsignal_response = reqwest_client + .post(url.clone()) + .body(metric_bytes) + .send() + .await?; debug!("Metric sent: {:?}", appsignal_response); } @@ -252,9 +256,9 @@ async fn run() -> Result<(), Error> { #[cfg(test)] mod tests { - use std::assert_eq; use crate::KubernetesMetric; use serde_json::json; + use std::assert_eq; #[test] fn extract_node_metrics_with_empty_results() {