Warning fixes
This commit is contained in:
@@ -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(),
|
||||
)),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user