remove unnecessary enumeration
This commit is contained in:
		
							parent
							
								
									ed1092bc9e
								
							
						
					
					
						commit
						0565c3f1c6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -884,7 +884,7 @@ fn create_query_struct(spec: &OpenApiV2, path: &str, op: &Operation) -> eyre::Re
 | 
			
		|||
                            writeln!(&mut handler, "if !{field_name}.is_empty() {{")?;
 | 
			
		||||
                            writeln!(
 | 
			
		||||
                                &mut handler,
 | 
			
		||||
                                "for (i, item) in {field_name}.iter().enumerate() {{"
 | 
			
		||||
                                "for item in {field_name} {{"
 | 
			
		||||
                            )?;
 | 
			
		||||
                            writeln!(&mut handler, "s.push_str(\"{}=\");", param.name)?;
 | 
			
		||||
                            handler.push_str(item_pusher);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue