mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-29 19:17:12 +00:00 
			
		
		
		
	some changes
This commit is contained in:
		
							parent
							
								
									1bbc0fbaa5
								
							
						
					
					
						commit
						061a643f64
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -61,10 +61,9 @@ pub(super) fn hints( | ||||||
|             if arrow.is_none() { " -> " } else { "" }, |             if arrow.is_none() { " -> " } else { "" }, | ||||||
|         ) |         ) | ||||||
|     } else { |     } else { | ||||||
|         let body = closure.body()?; |  | ||||||
|         let body_range = body.syntax().text_range(); |  | ||||||
| 
 |  | ||||||
|         Some(config.lazy_text_edit(|| { |         Some(config.lazy_text_edit(|| { | ||||||
|  |             let body = closure.body(); | ||||||
|  |             let body_range = body.expect("Closure must have a body").syntax().text_range(); | ||||||
|             let mut builder = TextEdit::builder(); |             let mut builder = TextEdit::builder(); | ||||||
|             let insert_pos = param_list.syntax().text_range().end(); |             let insert_pos = param_list.syntax().text_range().end(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 jnyfah
						jnyfah