project: performed code clean up with clippy and changed logger to tracing

This commit is contained in:
Patryk Hegenberg 2024-04-22 23:09:52 +02:00
parent 67b3931b58
commit 080f9e74e0
4 changed files with 10 additions and 7 deletions

View file

@ -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",
)))