renamed some variables for clarity
This commit is contained in:
@@ -109,7 +109,7 @@ pub mod packages {
|
||||
StatusCode::OK => {
|
||||
let response = response.text()?;
|
||||
match serde_json::from_str(&response) {
|
||||
Ok(json) => Ok(json),
|
||||
Ok(pkgResponse) => Ok(pkgResponse),
|
||||
Err(e) => {
|
||||
error!("Failed to deserialize JSON: {}", e);
|
||||
error!("Response body: {}", response);
|
||||
@@ -181,7 +181,7 @@ pub mod general {
|
||||
StatusCode::OK => {
|
||||
let response = response.text()?;
|
||||
match serde_json::from_str(&response) {
|
||||
Ok(json) => Ok(json),
|
||||
Ok(genResponse) => Ok(genResponse),
|
||||
Err(e) => {
|
||||
error!("Failed to deserialize JSON: {}", e);
|
||||
error!("Response body: {}", response);
|
||||
|
Reference in New Issue
Block a user