aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 0e57bd13d1a..e8a1167a4fc 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -707,7 +707,7 @@ impl<'a> FlowConstructor<'a> {
style: &Arc<ComputedValues>) {
// Fast path: If there is no text content, return immediately.
let text_content = node.text_content();
- if text_content.len() == 0 {
+ if text_content.is_empty() {
return
}