Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize built in f32 min function instead of custom implementation #9338

Closed
frewsxcv opened this issue Jan 16, 2016 · 0 comments
Closed

Utilize built in f32 min function instead of custom implementation #9338

frewsxcv opened this issue Jan 16, 2016 · 0 comments

Comments

@frewsxcv
Copy link
Member

@frewsxcv frewsxcv commented Jan 16, 2016

Replace

fn fmin(a: f32, b: f32) -> f32 {
if a < b {
a
} else {
b
}
}

with

https://doc.rust-lang.org/std/primitive.f32.html#method.min

bors-servo added a commit that referenced this issue Jan 18, 2016
Fix to issue 9338

Fixes #9338.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9341)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jan 18, 2016
Fix to issue 9338

Fixes #9338.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9341)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.