mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Cleanup indentation of Position::parse_quirky.
This commit is contained in:
parent
a03aa1b4b9
commit
2090371203
1 changed files with 5 additions and 4 deletions
|
@ -67,10 +67,11 @@ impl Parse for Position {
|
||||||
|
|
||||||
impl Position {
|
impl Position {
|
||||||
/// Parses a `<position>`, with quirks.
|
/// Parses a `<position>`, with quirks.
|
||||||
pub fn parse_quirky<'i, 't>(context: &ParserContext,
|
pub fn parse_quirky<'i, 't>(
|
||||||
input: &mut Parser<'i, 't>,
|
context: &ParserContext,
|
||||||
allow_quirks: AllowQuirks)
|
input: &mut Parser<'i, 't>,
|
||||||
-> Result<Self, ParseError<'i>> {
|
allow_quirks: AllowQuirks,
|
||||||
|
) -> Result<Self, ParseError<'i>> {
|
||||||
match input.try(|i| PositionComponent::parse_quirky(context, i, allow_quirks)) {
|
match input.try(|i| PositionComponent::parse_quirky(context, i, allow_quirks)) {
|
||||||
Ok(x_pos @ PositionComponent::Center) => {
|
Ok(x_pos @ PositionComponent::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