From f71144818f8edf6e998059d08e915b6a890f4161 Mon Sep 17 00:00:00 2001 From: Diptesh Choudhuri Date: Sat, 5 Oct 2024 17:24:38 +0530 Subject: [PATCH] chore: format doc tests --- src/extension/postgres/func.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/extension/postgres/func.rs b/src/extension/postgres/func.rs index 4e8861c9..e0640cc7 100644 --- a/src/extension/postgres/func.rs +++ b/src/extension/postgres/func.rs @@ -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!( @@ -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!(