Fix indentation errors in servo rust code that tidy now finds.

This commit is contained in:
coalman 2017-04-18 02:21:10 -04:00
parent 57e74542ee
commit fc34b9a14d
19 changed files with 127 additions and 127 deletions

View file

@ -381,7 +381,7 @@ pub fn start_transitions_if_applicable(new_animations_sender: &Sender<Animation>
// [1]: https://drafts.csswg.org/css-transitions/#starting
if possibly_expired_animations.iter().any(|animation| {
animation.has_the_same_end_value_as(&property_animation)
}) {
}) {
continue
}

View file

@ -160,8 +160,8 @@ impl AttrValue {
pub fn from_comma_separated_tokenlist(tokens: String) -> AttrValue {
let atoms = split_commas(&tokens).map(Atom::from)
.fold(vec![], |mut acc, atom| {
if !acc.contains(&atom) { acc.push(atom) }
acc
if !acc.contains(&atom) { acc.push(atom) }
acc
});
AttrValue::TokenList(tokens, atoms)
}

View file

@ -1022,7 +1022,7 @@ impl ToCss for CalcLengthOrPercentage {
}
write!(dest, ")")
}
}
}
/// A percentage value.

View file

@ -554,7 +554,7 @@ impl HasViewportPercentage for BorderWidth {
match *self {
BorderWidth::Thin | BorderWidth::Medium | BorderWidth::Thick => false,
BorderWidth::Width(ref length) => length.has_viewport_percentage()
}
}
}
}