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

Make Rect::is_empty return true when either dimension is empty #110

Merged
merged 1 commit into from Oct 18, 2015

Conversation

@mrobinson
Copy link
Member

mrobinson commented Oct 16, 2015

Instead of only returning true when both dimensions of a Rect are
empty, is_empty should return true when either is empty. This makes
Rect much easier to use, because applications rarely want to
distinguish between situations where a Rect is empty in only one
direction or both.

Fixes #109.

Review on Reviewable

Instead of only returning true when both dimensions of a Rect are
empty, is_empty should return true when either is empty. This makes
Rect much easier to use, because applications rarely want to
distinguish between situations where a Rect is empty in only one
direction or both.

Fixes #109.
@glennw
Copy link
Member

glennw commented Oct 16, 2015

@mrobinson Makes sense - r=me when you can convince travis to merge this.

@frewsxcv
Copy link
Member

frewsxcv commented Oct 16, 2015

serde-rs/aster doesn't compile with the latest nightly

@frewsxcv
Copy link
Member

frewsxcv commented Oct 16, 2015

@erickt
Copy link

erickt commented Oct 18, 2015

Aster is back to building in 0.5.0.

@mrobinson
Copy link
Member Author

mrobinson commented Oct 18, 2015

@bors-servo r=glennw

@bors-servo
Copy link
Contributor

bors-servo commented Oct 18, 2015

📌 Commit 0e48edc has been approved by glennw

@bors-servo
Copy link
Contributor

bors-servo commented Oct 18, 2015

Testing commit 0e48edc with merge b61eb9a...

bors-servo pushed a commit that referenced this pull request Oct 18, 2015
Make Rect::is_empty return true when either dimension is empty

Instead of only returning true when both dimensions of a Rect are
empty, is_empty should return true when either is empty. This makes
Rect much easier to use, because applications rarely want to
distinguish between situations where a Rect is empty in only one
direction or both.

Fixes #109.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/euclid/110)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 18, 2015

☀️ Test successful - travis

@bors-servo bors-servo merged commit 0e48edc into servo:master Oct 18, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.