Fix or silence some warnings.

This commit is contained in:
Simon Sapin 2015-09-04 10:11:57 +02:00
parent 05deb3dcc8
commit 24a6a53633
2 changed files with 3 additions and 2 deletions

View file

@ -6641,8 +6641,8 @@ pub fn modify_style_for_text(style: &mut Arc<ComputedValues>) {
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));

View file

@ -639,6 +639,7 @@ pub mod specified {
}
impl ToCss for Calc {
#[allow(unused_assignments)]
fn to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
macro_rules! count {