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 GitHub
parent dce5ee6920
commit 6b42f40fc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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