mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Deprecate #[derive(DialogueState)]
This commit is contained in:
parent
dfba097c71
commit
74d44868a6
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ use quote::{quote, ToTokens};
|
|||
use syn::{parse_macro_input, DeriveInput, Fields, ItemEnum};
|
||||
|
||||
#[proc_macro_derive(DialogueState, attributes(handler, handler_out, store))]
|
||||
#[deprecated(note = "Use teloxide::handler! instead")]
|
||||
pub fn derive_dialogue_state(item: TokenStream) -> TokenStream {
|
||||
let input = parse_macro_input!(item as ItemEnum);
|
||||
match dialogue_state::expand(input) {
|
||||
|
|
Loading…
Reference in a new issue