project: performed code clean up with clippy and changed logger to tracing
This commit is contained in:
parent
67b3931b58
commit
080f9e74e0
4 changed files with 10 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ pub async fn download_info(relay: &str, name: &str) -> Result<TransferInfoReques
|
|||
Ok(resp) => {
|
||||
let json = resp.json::<TransferInfoRequest>().await?;
|
||||
debug!("Json Response: {:#?}", json);
|
||||
if json.message == "error".to_string() {
|
||||
if json.message == *"error" {
|
||||
Err(Box::new(TransferNotFoundError::new(
|
||||
"no transfer with given name found",
|
||||
)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue