Warning fixes (#54)
* More warning fixes * Should be the last of the warning fixes * Code cleanup * Code formatting
This commit was merged in pull request #54.
This commit is contained in:
@@ -6,7 +6,7 @@ use crate::syncers;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct RetrieveRecords {
|
||||
pub api: models::api::API,
|
||||
pub api: models::api::Api,
|
||||
}
|
||||
|
||||
impl RetrieveRecords {
|
||||
@@ -28,7 +28,7 @@ impl RetrieveRecords {
|
||||
|
||||
match response.status() {
|
||||
reqwest::StatusCode::OK => {
|
||||
// on success, parse our JSON to an APIResponse
|
||||
// on success, parse our JSON to an API Response
|
||||
match response.json::<Vec<icarus_models::song::Song>>().await {
|
||||
Ok(parsed) => Ok(parsed),
|
||||
Err(err) => Err(std::io::Error::other(err.to_string())),
|
||||
|
||||
Reference in New Issue
Block a user