Skip to content

Commit

Permalink
remove unnecessary curly-braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jangernert authored and dginev committed May 22, 2021
1 parent 07a42df commit d3c2a23
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,14 @@ impl<'a> ParserOptions<'a> {
(
$condition:expr => $variant:ident
) => {
{
if $condition {
match format {
ParseFormat::HTML => HtmlParserOption::$variant as i32,
ParseFormat::XML => XmlParserOption::$variant as i32,
}
} else {
0
}
if $condition {
match format {
ParseFormat::HTML => HtmlParserOption::$variant as i32,
ParseFormat::XML => XmlParserOption::$variant as i32,
}
} else {
0
}
};
}

Expand Down

0 comments on commit d3c2a23

Please sign in to comment.