Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
fix fmt problem
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer-two committed Aug 31, 2019
1 parent efeca29 commit 9673966
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/api_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,9 @@ impl GoodreadsApiClient {
match res {
Ok(mut resp) => match resp.status() {
StatusCode::OK => {
let txt = resp.text().unwrap_or_else(|err| {
return err.to_string()
});
let txt = resp.text().unwrap_or_else(|err| return err.to_string());
Ok(txt)
},
}
_ => Err(format!("Request failed. Status code: {}", resp.status())),
},
Err(err) => Err(format!("Request failed: {}", err)),
Expand Down

0 comments on commit 9673966

Please sign in to comment.