From 24a6a5363362147dbaa65e7ef834e7ce9e637d8b Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 4 Sep 2015 10:11:57 +0200 Subject: [PATCH] Fix or silence some warnings. --- components/style/properties.mako.rs | 4 ++-- components/style/values.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/style/properties.mako.rs b/components/style/properties.mako.rs index 52eefd96c3e..e9230819357 100644 --- a/components/style/properties.mako.rs +++ b/components/style/properties.mako.rs @@ -6641,8 +6641,8 @@ pub fn modify_style_for_text(style: &mut Arc) { style.padding.padding_right != computed::LengthOrPercentage::Length(Au(0)) || style.padding.padding_bottom != computed::LengthOrPercentage::Length(Au(0)) || style.padding.padding_left != computed::LengthOrPercentage::Length(Au(0)) { - let mut style = Arc::make_unique(style); - let mut padding = Arc::make_unique(&mut style.padding); + let mut style = Arc::make_mut(style); + let mut padding = Arc::make_mut(&mut style.padding); padding.padding_top = computed::LengthOrPercentage::Length(Au(0)); padding.padding_right = computed::LengthOrPercentage::Length(Au(0)); padding.padding_bottom = computed::LengthOrPercentage::Length(Au(0)); diff --git a/components/style/values.rs b/components/style/values.rs index 9542ae563bd..659c66dc9e0 100644 --- a/components/style/values.rs +++ b/components/style/values.rs @@ -639,6 +639,7 @@ pub mod specified { } impl ToCss for Calc { + #[allow(unused_assignments)] fn to_css(&self, dest: &mut W) -> fmt::Result where W: fmt::Write { macro_rules! count {