mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Run rustfmt on selectors, servo_arc, and style.
This was generated with: ./mach cargo fmt --package selectors && ./mach cargo fmt --package servo_arc && ./mach cargo fmt --package style Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
This commit is contained in:
parent
f7ae1a37e3
commit
c99bcdd4b8
181 changed files with 9981 additions and 7933 deletions
|
@ -24,7 +24,7 @@ impl MozForceBrokenImageIcon {
|
|||
impl Parse for MozForceBrokenImageIcon {
|
||||
fn parse<'i, 't>(
|
||||
_context: &ParserContext,
|
||||
input: &mut Parser<'i, 't>
|
||||
input: &mut Parser<'i, 't>,
|
||||
) -> Result<MozForceBrokenImageIcon, ParseError<'i>> {
|
||||
// We intentionally don't support calc values here.
|
||||
match input.expect_integer()? {
|
||||
|
@ -52,6 +52,10 @@ impl From<u8> for MozForceBrokenImageIcon {
|
|||
|
||||
impl From<MozForceBrokenImageIcon> for u8 {
|
||||
fn from(v: MozForceBrokenImageIcon) -> u8 {
|
||||
if v.0 { 1 } else { 0 }
|
||||
if v.0 {
|
||||
1
|
||||
} else {
|
||||
0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue