Moving the #[allow(deprecated)] to the descriptions_off test

Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
TheAwiteb 2023-09-20 18:42:49 +03:00
parent f979cc4f26
commit 9b58195fe9
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -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