Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Oct 5, 2024
1 parent df6f98e commit 098e88b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
26 changes: 21 additions & 5 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,11 @@ pub trait ExprTrait: Sized {
/// let query = Query::select()
/// .columns([Char::Id])
/// .from(Char::Table)
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_in([1, 2, 3]))
/// .and_where(
/// (Char::Table, Char::SizeW)
/// .into_column_ref()
/// .is_in([1, 2, 3]),
/// )
/// .to_owned();
///
/// assert_eq!(
Expand All @@ -543,7 +547,11 @@ pub trait ExprTrait: Sized {
/// let query = Query::select()
/// .columns([Char::Id])
/// .from(Char::Table)
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_in(Vec::<u8>::new()))
/// .and_where(
/// (Char::Table, Char::SizeW)
/// .into_column_ref()
/// .is_in(Vec::<u8>::new()),
/// )
/// .to_owned();
///
/// assert_eq!(
Expand Down Expand Up @@ -615,7 +623,11 @@ pub trait ExprTrait: Sized {
/// let query = Query::select()
/// .columns([Char::Id])
/// .from(Char::Table)
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_not_in([1, 2, 3]))
/// .and_where(
/// (Char::Table, Char::SizeW)
/// .into_column_ref()
/// .is_not_in([1, 2, 3]),
/// )
/// .to_owned();
///
/// assert_eq!(
Expand All @@ -638,7 +650,11 @@ pub trait ExprTrait: Sized {
/// let query = Query::select()
/// .columns([Char::Id])
/// .from(Char::Table)
/// .and_where((Char::Table, Char::SizeW).into_column_ref().is_not_in(Vec::<u8>::new()))
/// .and_where(
/// (Char::Table, Char::SizeW)
/// .into_column_ref()
/// .is_not_in(Vec::<u8>::new()),
/// )
/// .to_owned();
///
/// assert_eq!(
Expand Down Expand Up @@ -1162,7 +1178,7 @@ pub trait ExprTrait: Sized {
/// # Examples
///
/// ```
/// use sea_query::{*, tests_cfg::*};
/// use sea_query::{tests_cfg::*, *};
///
/// let query = Query::select()
/// .columns([Char::Character, Char::SizeW, Char::SizeH])
Expand Down
6 changes: 5 additions & 1 deletion src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,11 @@ impl Func {
/// use sea_query::{tests_cfg::*, *};
///
/// let query = Query::select()
/// .expr(Func::cast_as_quoted("hello", Alias::new("MyType"), '"'.into()))
/// .expr(Func::cast_as_quoted(
/// "hello",
/// Alias::new("MyType"),
/// '"'.into(),
/// ))
/// .to_owned();
///
/// assert_eq!(
Expand Down

0 comments on commit 098e88b

Please sign in to comment.