From c29aac96a7056924daa88bd3b138bc326eb59b6b Mon Sep 17 00:00:00 2001 From: puh Date: Wed, 15 Feb 2023 03:35:03 +0300 Subject: [PATCH] cleanup --- crates/teloxide-macros/src/fields_parse.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/teloxide-macros/src/fields_parse.rs b/crates/teloxide-macros/src/fields_parse.rs index 896aaaa6..d93de04f 100644 --- a/crates/teloxide-macros/src/fields_parse.rs +++ b/crates/teloxide-macros/src/fields_parse.rs @@ -138,9 +138,6 @@ fn parser_with_separator<'a>( let res = #res; - if !s.is_empty() && splitted.count() { - } - match splitted.next() { Some(d) if !s.is_empty() => ::std::result::Result::Err(teloxide::utils::command::ParseError::TooManyArguments { expected: #expected,