code beutifying

This commit is contained in:
Martin Brodbeck 2023-11-29 20:00:05 +01:00
parent 64cf89b185
commit 244fc759ea

View file

@ -1,5 +1,5 @@
use serde::Serialize;
use reqwest::Client;
use serde::Serialize;
#[derive(Serialize)]
pub struct RadioData {
@ -12,5 +12,10 @@ pub struct RadioData {
#[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();
}