From 2da9bab5934c1e7c87b76ae4b126befb23ecb02c Mon Sep 17 00:00:00 2001 From: Alexander Mironov Date: Tue, 20 Jul 2021 19:31:34 +0400 Subject: [PATCH] Do not try to guess body type when parameter template is present --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index 1302438..63209af 100644 --- a/src/args.rs +++ b/src/args.rs @@ -354,7 +354,7 @@ pub fn get_config() -> (Config, usize) { //check whether it is possible to automatically fix body type //- at the end means "specified automatically" - let body_type = if args.value_of("body-type").is_none() + let body_type = if args.value_of("body-type").is_none() && args.value_of("parameter_template").unwrap_or("").is_empty() && ( ( !body.is_empty() && body.starts_with('{')