mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Cleanup the indentation of a function.
This commit is contained in:
parent
d4b238bada
commit
a03aa1b4b9
1 changed files with 5 additions and 4 deletions
|
@ -304,10 +304,11 @@ impl Parse for LegacyPosition {
|
||||||
|
|
||||||
impl LegacyPosition {
|
impl LegacyPosition {
|
||||||
/// Parses a `<position>`, with quirks.
|
/// Parses a `<position>`, with quirks.
|
||||||
pub fn parse_quirky<'i, 't>(context: &ParserContext,
|
pub fn parse_quirky<'i, 't>(
|
||||||
|
context: &ParserContext,
|
||||||
input: &mut Parser<'i, 't>,
|
input: &mut Parser<'i, 't>,
|
||||||
allow_quirks: AllowQuirks)
|
allow_quirks: AllowQuirks,
|
||||||
-> Result<Self, ParseError<'i>> {
|
) -> Result<Self, ParseError<'i>> {
|
||||||
match input.try(|i| OriginComponent::parse(context, i)) {
|
match input.try(|i| OriginComponent::parse(context, i)) {
|
||||||
Ok(x_pos @ OriginComponent::Center) => {
|
Ok(x_pos @ OriginComponent::Center) => {
|
||||||
if let Ok(y_pos) = input.try(|i|
|
if let Ok(y_pos) = input.try(|i|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue