Skip to content

Commit

Permalink
Merge pull request #77 from milliams/remove_println
Browse files Browse the repository at this point in the history
Remove accidentally-left println!s
  • Loading branch information
dtantsur authored Sep 25, 2023
2 parents ceb26de + 331a6a3 commit a2bf0eb
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 a2bf0eb

Please sign in to comment.