mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-05 10:24:32 +01:00
Moving the #[allow(deprecated)]
to the descriptions_off
test
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
parent
f979cc4f26
commit
9b58195fe9
1 changed files with 1 additions and 1 deletions
|
@ -228,13 +228,13 @@ fn parse_named_fields() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "macros")]
|
#[cfg(feature = "macros")]
|
||||||
|
#[allow(deprecated)]
|
||||||
fn descriptions_off() {
|
fn descriptions_off() {
|
||||||
#[derive(BotCommands, Debug, PartialEq)]
|
#[derive(BotCommands, Debug, PartialEq)]
|
||||||
#[command(rename_rule = "lowercase")]
|
#[command(rename_rule = "lowercase")]
|
||||||
enum DefaultCommands {
|
enum DefaultCommands {
|
||||||
#[command(hide)]
|
#[command(hide)]
|
||||||
Start,
|
Start,
|
||||||
#[allow(deprecated)]
|
|
||||||
#[command(description = "off")]
|
#[command(description = "off")]
|
||||||
Username,
|
Username,
|
||||||
/// off
|
/// off
|
||||||
|
|
Loading…
Reference in a new issue