mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix or silence some warnings.
This commit is contained in:
parent
05deb3dcc8
commit
24a6a53633
2 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue