chiark / gitweb /
Remove some assorted dbg! I don't need any more.
authorSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 12:14:45 +0000 (12:14 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 1 Jan 2024 12:14:45 +0000 (12:14 +0000)
src/client.rs
src/editor.rs

index 55c1e58824186a58b22083e18a363fdd4bb20047..ddc445307f85529ca178281e9329b94544ad91dd 100644 (file)
@@ -263,7 +263,7 @@ impl Client {
         let rels: Vec<Relationship> = 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<Status> = 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()))
                     },
                 }?;
index 87ca60b484f0fa6088242b95dd1c3850bcd9fa69..1cf52616221120536219c103042c528181364dfa 100644 (file)
@@ -583,7 +583,7 @@ pub fn get_user_to_examine() -> Box<dyn ActivityState> {
             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()),