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