Skip to content

Commit ad011a1

Browse files
spazmms705
authored andcommitted
Remove unnecessary level of bracing
* match is a single expression. It doesn't need to be wrapped in {} braces for the closure
1 parent 33092cc commit ad011a1

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/compound_select.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,14 @@ fn compound_op(i: &[u8]) -> IResult<&[u8], CompoundSelectOperator> {
7070
)),
7171
)),
7272
),
73-
|distinct| {
74-
match distinct {
75-
// DISTINCT is the default in both MySQL and SQLite
76-
None => CompoundSelectOperator::DistinctUnion,
77-
Some(d) => {
78-
if d {
79-
CompoundSelectOperator::DistinctUnion
80-
} else {
81-
CompoundSelectOperator::Union
82-
}
73+
|distinct| match distinct {
74+
// DISTINCT is the default in both MySQL and SQLite
75+
None => CompoundSelectOperator::DistinctUnion,
76+
Some(d) => {
77+
if d {
78+
CompoundSelectOperator::DistinctUnion
79+
} else {
80+
CompoundSelectOperator::Union
8381
}
8482
}
8583
},

0 commit comments

Comments
 (0)