diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-08-17 02:33:28 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-08-17 02:33:28 -0600 |
commit | d90907cb5f7399196b76b3117e19ff4d1b775a96 (patch) | |
tree | 854de9649526e6f3ee059d67bd9609d83f8d406a /components/layout/flow.rs | |
parent | 71ae18bae4fe72a57ba1f8984891b2523f97b807 (diff) | |
parent | 1e2044774645424b555bf4ff789c3e686ab67466 (diff) | |
download | servo-d90907cb5f7399196b76b3117e19ff4d1b775a96.tar.gz servo-d90907cb5f7399196b76b3117e19ff4d1b775a96.zip |
Auto merge of #7245 - jxs:master, r=Ms2ger
replace len() !=0 with !is_empty()
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7245)
<!-- Reviewable:end -->
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r-- | components/layout/flow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 550fed85fad..445a3e5a49c 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -244,7 +244,7 @@ pub trait Flow: fmt::Debug + Sync { match self.class() { FlowClass::Block | FlowClass::TableCaption | - FlowClass::TableCell if base(self).children.len() != 0 => { + FlowClass::TableCell if !base(self).children.is_empty() => { // FIXME(#2795): Get the real container size. let container_size = Size2D::zero(); for kid in mut_base(self).children.iter_mut() { |