diff options
author | João Oliveira <hello@jxs.pt> | 2015-08-17 02:54:30 +0100 |
---|---|---|
committer | João Oliveira <hello@jxs.pt> | 2015-08-17 02:56:07 +0100 |
commit | 1e2044774645424b555bf4ff789c3e686ab67466 (patch) | |
tree | 9d0c818bf1e78bb3b14b592c99b8e5b158ce1cff /components/layout/flow.rs | |
parent | 3bb930661d06c864e17374bfd1f0b0f4d06d7253 (diff) | |
download | servo-1e2044774645424b555bf4ff789c3e686ab67466.tar.gz servo-1e2044774645424b555bf4ff789c3e686ab67466.zip |
replace len() !=0 with !is_empty()
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() { |