From a39cb81b969da88d8558a76ca001f899152c570d Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 1 Jan 2024 12:14:45 +0000 Subject: [PATCH] Remove some assorted dbg! I don't need any more. --- src/client.rs | 4 +--- src/editor.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client.rs b/src/client.rs index 55c1e58..ddc4453 100644 --- a/src/client.rs +++ b/src/client.rs @@ -263,7 +263,7 @@ impl Client { let rels: Vec = if !rspstatus.is_success() { Err(ClientError::UrlError(url.clone(), rspstatus.to_string())) } else { - match serde_json::from_str(dbg!(&rsp.text()?)) { + match serde_json::from_str(&rsp.text()?) { Ok(ac) => Ok(ac), Err(e) => Err(ClientError::UrlError( url.clone(), e.to_string())), @@ -448,7 +448,6 @@ impl Client { let sts: Vec = match serde_json::from_str(&body) { Ok(sts) => Ok(sts), Err(e) => { - dbg!(&body); Err(ClientError::UrlError(url.clone(), e.to_string())) }, }?; @@ -462,7 +461,6 @@ impl Client { &body) { Ok(nots) => Ok(nots), Err(e) => { - dbg!(&body); Err(ClientError::UrlError(url.clone(), e.to_string())) }, }?; diff --git a/src/editor.rs b/src/editor.rs index 87ca60b..1cf5261 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -583,7 +583,7 @@ pub fn get_user_to_examine() -> Box { if s.is_empty() { LogicalAction::PopOverlaySilent } else { - match dbg!(client.account_by_name(s)) { + match client.account_by_name(s) { Ok(account) => LogicalAction::Goto( UtilityActivity::ExamineUser(account.id).into()), -- 2.30.2