put query directly in format string
				
					
				
			This commit is contained in:
		
							parent
							
								
									19a0dc3a60
								
							
						
					
					
						commit
						787adac1a4
					
				
					 2 changed files with 105 additions and 282 deletions
				
			
		| 
						 | 
				
			
			@ -349,8 +349,7 @@ fn create_method_request(
 | 
			
		|||
    let mut fmt_str = sanitize_path_arg(path)?;
 | 
			
		||||
    let mut fmt_args = String::new();
 | 
			
		||||
    if has_query {
 | 
			
		||||
        fmt_str.push_str("?{}");
 | 
			
		||||
        fmt_args.push_str(", query.to_string()");
 | 
			
		||||
        fmt_str.push_str("?{query}");
 | 
			
		||||
    }
 | 
			
		||||
    let path_arg = if fmt_str.contains("{") {
 | 
			
		||||
        format!("&format!(\"{fmt_str}\"{fmt_args})")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										384
									
								
								src/generated.rs
									
										
									
									
									
								
							
							
						
						
									
										384
									
								
								src/generated.rs
									
										
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue