Skip to content

Commit c559641

Browse files
committed
Remove redundant Expr::expr from internal code
1 parent a9eb30d commit c559641

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sea-orm-migration/src/migrator.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ where
487487
))
488488
.cond_where(
489489
Condition::all()
490-
.add(Expr::expr(get_current_schema(db)).equals((
490+
.add(get_current_schema(db).equals((
491491
InformationSchema::TableConstraints,
492492
InformationSchema::TableSchema,
493493
)))
@@ -532,10 +532,7 @@ where
532532
)
533533
.cond_where(
534534
Condition::all()
535-
.add(
536-
Expr::expr(get_current_schema(db))
537-
.equals((PgNamespace::Table, PgNamespace::Nspname)),
538-
)
535+
.add(get_current_schema(db).equals((PgNamespace::Table, PgNamespace::Nspname)))
539536
.add(Expr::col((PgType::Table, PgType::Typelem)).eq(0)),
540537
);
541538
stmt

0 commit comments

Comments
 (0)