Update crates/teloxide-macros/src/command.rs

Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
Awiteb 2023-03-07 13:26:53 +03:00 committed by Maybe Waffle
parent 44d230e3be
commit 53b5dd0a18

View file

@ -59,6 +59,7 @@ impl Command {
} }
pub(crate) fn description_is_enabled(&self) -> bool { pub(crate) fn description_is_enabled(&self) -> bool {
// FIXME: remove the first, `== "off"`, check eventually
self.description != Some("off".to_owned()) && !self.hidden self.description != Some("off".to_owned()) && !self.hidden
} }
} }