From 178a6cf95736fcc245a1221d81055f9b64e98741 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Tue, 7 Mar 2023 13:27:05 +0300 Subject: [PATCH] Update crates/teloxide-macros/src/command.rs Co-authored-by: Waffle Maybe --- crates/teloxide-macros/src/command.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/teloxide-macros/src/command.rs b/crates/teloxide-macros/src/command.rs index 5a69c18d..d615a651 100644 --- a/crates/teloxide-macros/src/command.rs +++ b/crates/teloxide-macros/src/command.rs @@ -49,7 +49,6 @@ impl Command { let prefix = prefix.map(|(p, _)| p).unwrap_or_else(|| global_options.prefix.clone()); let description = description.map(|(d, _)| d); let parser = parser.map(|(p, _)| p).unwrap_or_else(|| global_options.parser_type.clone()); - Ok(Self { prefix, description, parser, name, hidden: hide.is_some() }) }