aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/block.rs
diff options
context:
space:
mode:
authorfaineance <faineance@users.noreply.github.com>2016-03-27 11:50:08 +0100
committerfaineance <faineance@users.noreply.github.com>2016-03-27 11:50:08 +0100
commit418842faf9135da4b70b12fd8b88bc6b8d504cfc (patch)
tree64690189fcf218696759273c2c29cc2799db8e25 /components/layout/block.rs
parent68a8085a2f11d052948145980a0bf8a46471e3a7 (diff)
downloadservo-418842faf9135da4b70b12fd8b88bc6b8d504cfc.tar.gz
servo-418842faf9135da4b70b12fd8b88bc6b8d504cfc.zip
use self.0 instead of destructing single item tuple structs
Diffstat (limited to 'components/layout/block.rs')
-rw-r--r--components/layout/block.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs
index b987313b21f..a502611df3b 100644
--- a/components/layout/block.rs
+++ b/components/layout/block.rs
@@ -471,8 +471,7 @@ impl<'a> PreorderFlowTraversal for AbsoluteAssignBSizesTraversal<'a> {
return
}
- let AbsoluteAssignBSizesTraversal(ref layout_context) = *self;
- block.calculate_absolute_block_size_and_margins(*layout_context);
+ block.calculate_absolute_block_size_and_margins(&self.0);
}
}