From 244fc759eaf1911e3bb2978928a261f5686691e5 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Wed, 29 Nov 2023 20:00:05 +0100 Subject: [PATCH] code beutifying --- src/cloudlog.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/cloudlog.rs b/src/cloudlog.rs index 9f681f7..bb18eba 100644 --- a/src/cloudlog.rs +++ b/src/cloudlog.rs @@ -1,16 +1,21 @@ -use serde::Serialize; use reqwest::Client; +use serde::Serialize; #[derive(Serialize)] pub struct RadioData { pub key: String, pub radio: String, - pub frequency : String, + pub frequency: String, pub mode: String, pub power: String, } #[tokio::main] pub async fn upload(url: &str, radio_data: &RadioData) { - let _res = Client::new().post(url).json(&radio_data).send().await.unwrap(); + let _res = Client::new() + .post(url) + .json(&radio_data) + .send() + .await + .unwrap(); }