Skip to content

Commit

Permalink
Remove accidentally-left println!s
Browse files Browse the repository at this point in the history
  • Loading branch information
milliams committed Sep 20, 2023
1 parent ceb26de commit 331a6a3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,12 @@ struct Message {
impl Message {
fn convert(self, recursive: bool) -> Option<String> {
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::<Message>(&json).ok().and_then(|msg| {
println!("submessage {:?}", msg);
msg.convert(false)
});
serde_json::from_str::<Message>(&json)
.ok()
.and_then(|msg| msg.convert(false))
} else {
None
}
Expand Down

0 comments on commit 331a6a3

Please sign in to comment.