Skip to content

Conversation

est31
Copy link
Member

@est31 est31 commented Apr 14, 2017

Its going to be forbidden, see issue #41255.

@rust-highfive
Copy link
Contributor

r? @BurntSushi

(rust_highfive has picked a reviewer for you, use r? to override)

_ => Large(GammaLargeShape::new_raw(shape, scale)),
let repr = if shape == 1.0 {
One(Exp::new(1.0 / scale))
} else if shape > 0.0 && shape < 1.0 {
Copy link
Member

Choose a reason for hiding this comment

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

Should this be shape >= 0.0?

(I usually like to write conditions like this with the subject in the middle, e.g., 0.0 <= shape && shape < 1.0, but YMMV.)

Its going to be forbidden, see issue 41255.
@est31
Copy link
Member Author

est31 commented Apr 14, 2017

Addressed the comment.

@BurntSushi
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 14, 2017

📌 Commit baeec7b has been approved by BurntSushi

@BurntSushi
Copy link
Member

Thanks @est31! (I haven't forgotten about your other PR btw. I'm really hoping to get to it this weekend!)

frewsxcv added a commit to frewsxcv/rust that referenced this pull request Apr 14, 2017
Avoid to use floating point match

Its going to be forbidden, see issue rust-lang#41255.
bors added a commit that referenced this pull request Apr 14, 2017
Rollup of 4 pull requests

- Successful merges: #41279, #41281, #41287, #41292
- Failed merges:
@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 14, 2017
@bors bors merged commit baeec7b into rust-lang:master Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants