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

price-info does not depend on util #6231

Merged
merged 3 commits into from
Aug 8, 2017
Merged

price-info does not depend on util #6231

merged 3 commits into from
Aug 8, 2017

Conversation

debris
Copy link
Collaborator

@debris debris commented Aug 4, 2017

tiny pr,

  • first commit removes dependency on util and moves price-info.rs -> lib.rs
  • second commit makes a code a bit more idiomatic

@debris debris added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Aug 4, 2017
@@ -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()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed? AFAIR is_sucess() returns true for any 2xx status code and I think we should be more strict in that case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, will revert it

@debris
Copy link
Collaborator Author

debris commented Aug 4, 2017

CI fail is unrelated

@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 7, 2017
@debris debris merged commit 80db434 into master Aug 8, 2017
@debris debris deleted the price_info_util branch August 8, 2017 18:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants