Skip to content

Commit

Permalink
chore: format doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Oct 5, 2024
1 parent c81ff75 commit f711448
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/extension/postgres/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ impl PgFunc {
/// use sea_query::{tests_cfg::*, *};
///
/// let query = Query::select()
/// .expr(PgFunc::date_trunc(PgDateTrunc::Day, Expr::val("2020-01-01")))
/// .expr(PgFunc::date_trunc(
/// PgDateTrunc::Day,
/// Expr::val("2020-01-01"),
/// ))
/// .to_owned();
///
/// assert_eq!(
Expand All @@ -402,7 +405,10 @@ impl PgFunc {
/// );
///
/// let query = Query::select()
/// .expr(PgFunc::date_trunc(PgDateTrunc::Microseconds, Expr::val("2020-01-01")))
/// .expr(PgFunc::date_trunc(
/// PgDateTrunc::Microseconds,
/// Expr::val("2020-01-01"),
/// ))
/// .to_owned();
///
/// assert_eq!(
Expand Down

0 comments on commit f711448

Please sign in to comment.