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
Merged

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

merged 1 commit into from
Oct 18, 2015

Conversation

mrobinson
Copy link
Member

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
Contributor

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

@frewsxcv
Copy link
Contributor

@erickt
Copy link

erickt commented Oct 18, 2015

Aster is back to building in 0.5.0.

@mrobinson
Copy link
Member Author

@bors-servo r=glennw

@bors-servo
Copy link
Contributor

📌 Commit 0e48edc has been approved by glennw

@bors-servo
Copy link
Contributor

⌛ 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

☀️ Test successful - travis

@bors-servo bors-servo merged commit 0e48edc into servo:master Oct 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants