mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #7539 - servo:warnings, r=SimonSapin
Fix or silence some warnings. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7539) <!-- Reviewable:end -->
This commit is contained in:
commit
8d21a79246
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