From 74b03664cfee39066b80667d5045b42d1110452c Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Tue, 13 Feb 2024 22:15:36 +0100 Subject: [PATCH] Fill-in deprecation version, remove useless `allow` --- crates/teloxide-core/src/types/parse_mode.rs | 7 +++++-- crates/teloxide/src/prelude.rs | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/teloxide-core/src/types/parse_mode.rs b/crates/teloxide-core/src/types/parse_mode.rs index edd652fe..d5a07c31 100644 --- a/crates/teloxide-core/src/types/parse_mode.rs +++ b/crates/teloxide-core/src/types/parse_mode.rs @@ -145,8 +145,11 @@ pub enum ParseMode { MarkdownV2, #[serde(rename = "HTML")] Html, - #[deprecated = "This is a legacy mode, retained for backward compatibility. Use `MarkdownV2` \ - instead."] + #[deprecated( + since = "0.1.0", + note = "This is a legacy mode, retained for backward compatibility. Use `MarkdownV2` \ + instead." + )] Markdown, } diff --git a/crates/teloxide/src/prelude.rs b/crates/teloxide/src/prelude.rs index 78db754b..b9c4aba4 100644 --- a/crates/teloxide/src/prelude.rs +++ b/crates/teloxide/src/prelude.rs @@ -2,7 +2,6 @@ pub use crate::error_handlers::{LoggingErrorHandler, OnError}; -#[allow(deprecated)] pub use crate::respond; pub use crate::dispatching::{