Skip to content

Commit

Permalink
Remove unnecessary try!'s
Browse files Browse the repository at this point in the history
  • Loading branch information
canova committed Jan 11, 2017
1 parent 04a3242 commit c2dd14d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/style/values/specified/basic_shape.rs
Expand Up @@ -239,7 +239,7 @@ impl Parse for InsetRect {
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
match_ignore_ascii_case! { try!(input.expect_function()),
"inset" => {
Ok(try!(input.parse_nested_block(|i| InsetRect::parse_function_arguments(context, i))))
input.parse_nested_block(|i| InsetRect::parse_function_arguments(context, i))
},
_ => Err(())
}
Expand Down Expand Up @@ -414,7 +414,7 @@ impl Parse for Circle {
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
match_ignore_ascii_case! { try!(input.expect_function()),
"circle" => {
Ok(try!(input.parse_nested_block(|i| Circle::parse_function_arguments(context, i))))
input.parse_nested_block(|i| Circle::parse_function_arguments(context, i))
},
_ => Err(())
}
Expand Down Expand Up @@ -498,7 +498,7 @@ impl Parse for Ellipse {
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
match_ignore_ascii_case! { try!(input.expect_function()),
"ellipse" => {
Ok(try!(input.parse_nested_block(|i| Ellipse::parse_function_arguments(context, i))))
input.parse_nested_block(|i| Ellipse::parse_function_arguments(context, i))
},
_ => Err(())
}
Expand Down Expand Up @@ -576,7 +576,7 @@ impl Parse for Polygon {
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
match_ignore_ascii_case! { try!(input.expect_function()),
"polygon" => {
Ok(try!(input.parse_nested_block(|i| Polygon::parse_function_arguments(context, i))))
input.parse_nested_block(|i| Polygon::parse_function_arguments(context, i))
},
_ => Err(())
}
Expand Down

0 comments on commit c2dd14d

Please sign in to comment.