diff --git a/src/api.rs b/src/api.rs index bb2d39f..32ccc8c 100644 --- a/src/api.rs +++ b/src/api.rs @@ -77,11 +77,7 @@ pub mod get_metadata_queue { let endpoint = String::from("api/v2/song/metadata/queue"); let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri); let (key, header) = super::auth_header(app).await; - client - .get(api_url) - .header(key, header) - .send() - .await + client.get(api_url).header(key, header).send().await } pub mod response { @@ -129,11 +125,7 @@ pub mod get_coverart_queue { let endpoint = String::from("api/v2/coverart/queue"); let api_url = format!("{}/{endpoint}?song_queue_id={song_queue_id}", app.uri); let (key, header) = super::auth_header(app).await; - client - .get(api_url) - .header(key, header) - .send() - .await + client.get(api_url).header(key, header).send().await } pub async fn get_data(