@@ -1426,10 +1426,10 @@ fn make_call(ctx: &AssistContext<'_>, fun: &Function, indent: IndentLevel) -> Sy
14261426 let name = fun. name . clone ( ) ;
14271427 let mut call_expr = if fun. self_param . is_some ( ) {
14281428 let self_arg = make:: expr_path ( make:: ext:: ident_path ( "self" ) ) ;
1429- make:: expr_method_call ( self_arg, name, args)
1429+ make:: expr_method_call ( self_arg, name, args) . into ( )
14301430 } else {
14311431 let func = make:: expr_path ( make:: path_unqualified ( make:: path_segment ( name) ) ) ;
1432- make:: expr_call ( func, args)
1432+ make:: expr_call ( func, args) . into ( )
14331433 } ;
14341434
14351435 let handler = FlowHandler :: from_ret_ty ( fun, & ret_ty) ;
@@ -1911,14 +1911,15 @@ fn make_body(ctx: &AssistContext<'_>, old_indent: IndentLevel, fun: &Function) -
19111911 } ;
19121912 let func = make:: expr_path ( make:: ext:: ident_path ( constructor) ) ;
19131913 let args = make:: arg_list ( iter:: once ( tail_expr) ) ;
1914- make:: expr_call ( func, args)
1914+ make:: expr_call ( func, args) . into ( )
19151915 } )
19161916 }
19171917 FlowHandler :: If { .. } => {
19181918 let controlflow_continue = make:: expr_call (
19191919 make:: expr_path ( make:: path_from_text ( "ControlFlow::Continue" ) ) ,
19201920 make:: arg_list ( [ make:: ext:: expr_unit ( ) ] ) ,
1921- ) ;
1921+ )
1922+ . into ( ) ;
19221923 with_tail_expr ( block, controlflow_continue)
19231924 }
19241925 FlowHandler :: IfOption { .. } => {
@@ -1928,12 +1929,12 @@ fn make_body(ctx: &AssistContext<'_>, old_indent: IndentLevel, fun: &Function) -
19281929 FlowHandler :: MatchOption { .. } => map_tail_expr ( block, |tail_expr| {
19291930 let some = make:: expr_path ( make:: ext:: ident_path ( "Some" ) ) ;
19301931 let args = make:: arg_list ( iter:: once ( tail_expr) ) ;
1931- make:: expr_call ( some, args)
1932+ make:: expr_call ( some, args) . into ( )
19321933 } ) ,
19331934 FlowHandler :: MatchResult { .. } => map_tail_expr ( block, |tail_expr| {
19341935 let ok = make:: expr_path ( make:: ext:: ident_path ( "Ok" ) ) ;
19351936 let args = make:: arg_list ( iter:: once ( tail_expr) ) ;
1936- make:: expr_call ( ok, args)
1937+ make:: expr_call ( ok, args) . into ( )
19371938 } ) ,
19381939 }
19391940}
@@ -2121,17 +2122,18 @@ fn make_rewritten_flow(handler: &FlowHandler, arg_expr: Option<ast::Expr>) -> Op
21212122 FlowHandler :: If { .. } => make:: expr_call (
21222123 make:: expr_path ( make:: path_from_text ( "ControlFlow::Break" ) ) ,
21232124 make:: arg_list ( [ make:: ext:: expr_unit ( ) ] ) ,
2124- ) ,
2125+ )
2126+ . into ( ) ,
21252127 FlowHandler :: IfOption { .. } => {
21262128 let expr = arg_expr. unwrap_or_else ( make:: ext:: expr_unit) ;
21272129 let args = make:: arg_list ( [ expr] ) ;
2128- make:: expr_call ( make:: expr_path ( make:: ext:: ident_path ( "Some" ) ) , args)
2130+ make:: expr_call ( make:: expr_path ( make:: ext:: ident_path ( "Some" ) ) , args) . into ( )
21292131 }
21302132 FlowHandler :: MatchOption { .. } => make:: expr_path ( make:: ext:: ident_path ( "None" ) ) ,
21312133 FlowHandler :: MatchResult { .. } => {
21322134 let expr = arg_expr. unwrap_or_else ( make:: ext:: expr_unit) ;
21332135 let args = make:: arg_list ( [ expr] ) ;
2134- make:: expr_call ( make:: expr_path ( make:: ext:: ident_path ( "Err" ) ) , args)
2136+ make:: expr_call ( make:: expr_path ( make:: ext:: ident_path ( "Err" ) ) , args) . into ( )
21352137 }
21362138 } ;
21372139 Some ( make:: expr_return ( Some ( value) ) . clone_for_update ( ) )
0 commit comments