Skip to content

Commit 098e88b

Browse files
committed
fmt
1 parent df6f98e commit 098e88b

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

src/expr.rs

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,11 @@ pub trait ExprTrait: Sized {
520520
/// let query = Query::select()
521521
/// .columns([Char::Id])
522522
/// .from(Char::Table)
523-
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_in([1, 2, 3]))
523+
/// .and_where(
524+
/// (Char::Table, Char::SizeW)
525+
/// .into_column_ref()
526+
/// .is_in([1, 2, 3]),
527+
/// )
524528
/// .to_owned();
525529
///
526530
/// assert_eq!(
@@ -543,7 +547,11 @@ pub trait ExprTrait: Sized {
543547
/// let query = Query::select()
544548
/// .columns([Char::Id])
545549
/// .from(Char::Table)
546-
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_in(Vec::<u8>::new()))
550+
/// .and_where(
551+
/// (Char::Table, Char::SizeW)
552+
/// .into_column_ref()
553+
/// .is_in(Vec::<u8>::new()),
554+
/// )
547555
/// .to_owned();
548556
///
549557
/// assert_eq!(
@@ -615,7 +623,11 @@ pub trait ExprTrait: Sized {
615623
/// let query = Query::select()
616624
/// .columns([Char::Id])
617625
/// .from(Char::Table)
618-
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_not_in([1, 2, 3]))
626+
/// .and_where(
627+
/// (Char::Table, Char::SizeW)
628+
/// .into_column_ref()
629+
/// .is_not_in([1, 2, 3]),
630+
/// )
619631
/// .to_owned();
620632
///
621633
/// assert_eq!(
@@ -638,7 +650,11 @@ pub trait ExprTrait: Sized {
638650
/// let query = Query::select()
639651
/// .columns([Char::Id])
640652
/// .from(Char::Table)
641-
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_not_in(Vec::<u8>::new()))
653+
/// .and_where(
654+
/// (Char::Table, Char::SizeW)
655+
/// .into_column_ref()
656+
/// .is_not_in(Vec::<u8>::new()),
657+
/// )
642658
/// .to_owned();
643659
///
644660
/// assert_eq!(
@@ -1162,7 +1178,7 @@ pub trait ExprTrait: Sized {
11621178
/// # Examples
11631179
///
11641180
/// ```
1165-
/// use sea_query::{*, tests_cfg::*};
1181+
/// use sea_query::{tests_cfg::*, *};
11661182
///
11671183
/// let query = Query::select()
11681184
/// .columns([Char::Character, Char::SizeW, Char::SizeH])

src/func.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,11 @@ impl Func {
472472
/// use sea_query::{tests_cfg::*, *};
473473
///
474474
/// let query = Query::select()
475-
/// .expr(Func::cast_as_quoted("hello", Alias::new("MyType"), '"'.into()))
475+
/// .expr(Func::cast_as_quoted(
476+
/// "hello",
477+
/// Alias::new("MyType"),
478+
/// '"'.into(),
479+
/// ))
476480
/// .to_owned();
477481
///
478482
/// assert_eq!(

0 commit comments

Comments
 (0)