Warning fixes

This commit is contained in:
kdeng00
2025-07-01 22:23:37 -04:00
parent cf95caef50
commit 3e96bea7be
9 changed files with 57 additions and 51 deletions
+5 -5
View File
@@ -5,11 +5,12 @@ use reqwest;
use crate::models;
use crate::syncers;
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct Delete {
pub api: models::api::API,
}
/*
impl Default for Delete {
fn default() -> Self {
Delete {
@@ -17,6 +18,7 @@ impl Default for Delete {
}
}
}
*/
impl Delete {
pub async fn delete_song(
@@ -41,14 +43,12 @@ impl Delete {
match response.json::<icarus_models::song::Song>().await {
Ok(sng) => Ok(sng),
Err(er) => Err(std::io::Error::new(
std::io::ErrorKind::Other,
Err(er) => Err(std::io::Error::other(
er.to_string(),
)),
}
}
other => Err(std::io::Error::new(
std::io::ErrorKind::Other,
other => Err(std::io::Error::other(
other.to_string(),
)),
}