a bit more idiomatic price-info

This commit is contained in:
debris
2017-08-04 13:39:57 +02:00
parent 63f8cc3503
commit f72196f1bb
2 changed files with 21 additions and 21 deletions

View File

@@ -297,7 +297,7 @@ impl Response {
/// Returns `true` if response status code is successful.
pub fn is_success(&self) -> bool {
self.status() == reqwest::StatusCode::Ok
self.status().is_success()
}
/// Returns `true` if content type of this response is `text/html`