@@ -152,14 +152,14 @@ impl Expr {
152152 } ,
153153 ) => {
154154 // If both parameters are coalesce expressions, merge them.
155- params. extend ( other_params. into_iter ( ) ) ;
156- return Self :: Coalesce { params } ;
155+ params. extend ( other_params) ;
156+ Self :: Coalesce { params }
157157 }
158158 ( Expr :: Coalesce { mut params } , other) => {
159159 // If the first parameter is a coalesce expression, add the second
160160 // parameter to it.
161161 params. push ( other) ;
162- return Self :: Coalesce { params } ;
162+ Self :: Coalesce { params }
163163 }
164164 (
165165 param,
@@ -170,14 +170,14 @@ impl Expr {
170170 // If the second parameter is a coalesce expression, add the first
171171 // parameter to it.
172172 let mut params = vec ! [ param] ;
173- params. extend ( other_params. into_iter ( ) ) ;
174- return Self :: Coalesce { params } ;
173+ params. extend ( other_params) ;
174+ Self :: Coalesce { params }
175175 }
176176 ( first, second) => {
177177 // If neither parameter is a coalesce expression, create a new one.
178- return Self :: Coalesce {
178+ Self :: Coalesce {
179179 params : vec ! [ first, second] ,
180- } ;
180+ }
181181 }
182182 }
183183 }
@@ -193,20 +193,20 @@ impl Expr {
193193 } ,
194194 ) => {
195195 // If both parameters are min expressions, merge them.
196- params. extend ( other_params. into_iter ( ) ) ;
197- return Self :: Min { params } ;
196+ params. extend ( other_params) ;
197+ Self :: Min { params }
198198 }
199199 ( Expr :: Min { mut params } , other) | ( other, Expr :: Min { mut params } ) => {
200200 // If one parameter is a min expression, add the other parameter
201201 // to it.
202202 params. push ( other) ;
203- return Self :: Min { params } ;
203+ Self :: Min { params }
204204 }
205205 ( first, second) => {
206206 // If neither parameter is a min expression, create a new one.
207- return Self :: Min {
207+ Self :: Min {
208208 params : vec ! [ first, second] ,
209- } ;
209+ }
210210 }
211211 }
212212 }
@@ -222,20 +222,20 @@ impl Expr {
222222 } ,
223223 ) => {
224224 // If both parameters are max expressions, merge them.
225- params. extend ( other_params. into_iter ( ) ) ;
226- return Self :: Max { params } ;
225+ params. extend ( other_params) ;
226+ Self :: Max { params }
227227 }
228228 ( Expr :: Max { mut params } , other) | ( other, Expr :: Max { mut params } ) => {
229229 // If one parameter is a max expression, add the other parameter
230230 // to it.
231231 params. push ( other) ;
232- return Self :: Max { params } ;
232+ Self :: Max { params }
233233 }
234234 ( first, second) => {
235235 // If neither parameter is a max expression, create a new one.
236- return Self :: Max {
236+ Self :: Max {
237237 params : vec ! [ first, second] ,
238- } ;
238+ }
239239 }
240240 }
241241 }
0 commit comments