From 331a6a34e18cc268b31cf0f354e524a4a20d1a5f Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Wed, 20 Sep 2023 09:14:00 +0100 Subject: [PATCH] Remove accidentally-left println!s --- src/client.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client.rs b/src/client.rs index 0334952..14b0f00 100644 --- a/src/client.rs +++ b/src/client.rs @@ -185,14 +185,12 @@ struct Message { impl Message { fn convert(self, recursive: bool) -> Option { if let Some(value) = self.message.or(self.faultstring).or(self.title) { - println!("Normal {}", value); Some(value) } else if recursive { if let Some(json) = self.error_message { - return serde_json::from_str::(&json).ok().and_then(|msg| { - println!("submessage {:?}", msg); - msg.convert(false) - }); + serde_json::from_str::(&json) + .ok() + .and_then(|msg| msg.convert(false)) } else { None }