@@ -459,10 +459,7 @@ pub trait ExprTrait: Sized {
459459 /// );
460460 /// ```
461461 fn in_subquery ( self , sel : SelectStatement ) -> Expr {
462- self . binary (
463- BinOper :: In ,
464- Expr :: SubQuery ( None , Box :: new ( sel. into_sub_query_statement ( ) ) ) ,
465- )
462+ self . binary ( BinOper :: In , Expr :: SubQuery ( None , Box :: new ( sel. into ( ) ) ) )
466463 }
467464
468465 /// Express a `IN` sub expression.
@@ -1170,10 +1167,7 @@ pub trait ExprTrait: Sized {
11701167 /// );
11711168 /// ```
11721169 fn not_in_subquery ( self , sel : SelectStatement ) -> Expr {
1173- self . binary (
1174- BinOper :: NotIn ,
1175- Expr :: SubQuery ( None , Box :: new ( sel. into_sub_query_statement ( ) ) ) ,
1176- )
1170+ self . binary ( BinOper :: NotIn , Expr :: SubQuery ( None , Box :: new ( sel. into ( ) ) ) )
11771171 }
11781172
11791173 /// Express a `NOT LIKE` expression.
@@ -2121,10 +2115,7 @@ impl Expr {
21212115 /// );
21222116 /// ```
21232117 pub fn exists ( sel : SelectStatement ) -> Self {
2124- Self :: SubQuery (
2125- Some ( SubQueryOper :: Exists ) ,
2126- Box :: new ( sel. into_sub_query_statement ( ) ) ,
2127- )
2118+ Self :: SubQuery ( Some ( SubQueryOper :: Exists ) , Box :: new ( sel. into ( ) ) )
21282119 }
21292120
21302121 /// Express a `ANY` sub-query expression.
@@ -2152,10 +2143,7 @@ impl Expr {
21522143 /// );
21532144 /// ```
21542145 pub fn any ( sel : SelectStatement ) -> Self {
2155- Self :: SubQuery (
2156- Some ( SubQueryOper :: Any ) ,
2157- Box :: new ( sel. into_sub_query_statement ( ) ) ,
2158- )
2146+ Self :: SubQuery ( Some ( SubQueryOper :: Any ) , Box :: new ( sel. into ( ) ) )
21592147 }
21602148
21612149 /// Express a `SOME` sub-query expression.
@@ -2183,18 +2171,12 @@ impl Expr {
21832171 /// );
21842172 /// ```
21852173 pub fn some ( sel : SelectStatement ) -> Self {
2186- Self :: SubQuery (
2187- Some ( SubQueryOper :: Some ) ,
2188- Box :: new ( sel. into_sub_query_statement ( ) ) ,
2189- )
2174+ Self :: SubQuery ( Some ( SubQueryOper :: Some ) , Box :: new ( sel. into ( ) ) )
21902175 }
21912176
21922177 /// Express a `ALL` sub-query expression.
21932178 pub fn all ( sel : SelectStatement ) -> Self {
2194- Self :: SubQuery (
2195- Some ( SubQueryOper :: All ) ,
2196- Box :: new ( sel. into_sub_query_statement ( ) ) ,
2197- )
2179+ Self :: SubQuery ( Some ( SubQueryOper :: All ) , Box :: new ( sel. into ( ) ) )
21982180 }
21992181
22002182 /// Adds new `CASE WHEN` to existing case statement.
0 commit comments