Some warning fixes
This commit is contained in:
@@ -495,7 +495,7 @@ mod api {
|
|||||||
) -> Result<reqwest::Response, reqwest::Error> {
|
) -> Result<reqwest::Response, reqwest::Error> {
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
let endpoint = String::from("api/v2/coverart/queue");
|
let endpoint = String::from("api/v2/coverart/queue");
|
||||||
let api_url = format!("{}/{}", base_url, endpoint);
|
let api_url = format!("{base_url}/{endpoint}");
|
||||||
client
|
client
|
||||||
.get(api_url)
|
.get(api_url)
|
||||||
.query(&[("song_queue_id", song_queue_id)])
|
.query(&[("song_queue_id", song_queue_id)])
|
||||||
@@ -509,7 +509,7 @@ mod api {
|
|||||||
) -> Result<reqwest::Response, reqwest::Error> {
|
) -> Result<reqwest::Response, reqwest::Error> {
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
let endpoint = String::from("api/v2/coverart/queue/data");
|
let endpoint = String::from("api/v2/coverart/queue/data");
|
||||||
let api_url = format!("{}/{}/{}", base_url, endpoint, coverart_queue_id);
|
let api_url = format!("{base_url}/{endpoint}/{coverart_queue_id}");
|
||||||
client.get(api_url).send().await
|
client.get(api_url).send().await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@ pub async fn update_queued_song(
|
|||||||
) -> Result<reqwest::Response, reqwest::Error> {
|
) -> Result<reqwest::Response, reqwest::Error> {
|
||||||
let client = reqwest::Client::builder().build()?;
|
let client = reqwest::Client::builder().build()?;
|
||||||
|
|
||||||
println!("Song path: {:?}", song_path);
|
println!("Song path: {song_path:?}");
|
||||||
|
|
||||||
// TODO: Make the filename random
|
// TODO: Make the filename random
|
||||||
let form = reqwest::multipart::Form::new().part(
|
let form = reqwest::multipart::Form::new().part(
|
||||||
|
Reference in New Issue
Block a user