Skip to content

Commit

Permalink
Merge pull request SeaQL#270 from insanitybit/master
Browse files Browse the repository at this point in the history
Allow for trailing commas in any and all macros
  • Loading branch information
tyt2y3 authored Mar 13, 2022
2 parents 5e72470 + ae15948 commit f5bd7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/condition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ impl std::convert::From<SimpleExpr> for ConditionExpression {
/// ```
#[macro_export]
macro_rules! any {
( $( $x:expr ),* ) => {
( $( $x:expr ),* $(,)?) => {
{
let mut tmp = sea_query::Condition::any();
$(
Expand Down Expand Up @@ -307,7 +307,7 @@ macro_rules! any {
/// );
#[macro_export]
macro_rules! all {
( $( $x:expr ),* ) => {
( $( $x:expr ),* $(,)?) => {
{
let mut tmp = sea_query::Condition::all();
$(
Expand Down

0 comments on commit f5bd7ac

Please sign in to comment.