mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-04 05:35:55 +00:00 
			
		
		
		
	fix: make::expr_method_call() -> MethodCallExpr
				
					
				
			Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
This commit is contained in:
		
							parent
							
								
									728d72fbe1
								
							
						
					
					
						commit
						ab620e367d
					
				
					 7 changed files with 27 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -140,7 +140,8 @@ pub(crate) fn generate_delegate_methods(acc: &mut Assists, ctx: &AssistContext<'
 | 
			
		|||
                    .map(convert_param_list_to_arg_list)
 | 
			
		||||
                    .unwrap_or_else(|| make::arg_list([]));
 | 
			
		||||
 | 
			
		||||
                let tail_expr = make::expr_method_call(field, make::name_ref(&name), arg_list);
 | 
			
		||||
                let tail_expr =
 | 
			
		||||
                    make::expr_method_call(field, make::name_ref(&name), arg_list).into();
 | 
			
		||||
                let tail_expr_finished =
 | 
			
		||||
                    if is_async { make::expr_await(tail_expr) } else { tail_expr };
 | 
			
		||||
                let body = make::block_expr([], Some(tail_expr_finished));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue