mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
rename out -> handler_out
This commit is contained in:
parent
8a022edfb5
commit
ee959c04cf
2 changed files with 4 additions and 4 deletions
|
@ -148,7 +148,7 @@ fn parse_out_type(
|
|||
) -> Result<Type, syn::Error> {
|
||||
let mut out = None;
|
||||
for x in attrs {
|
||||
if x.path.is_ident("out") {
|
||||
if x.path.is_ident("handler_out") {
|
||||
out = Some(x.parse_args::<Type>()?);
|
||||
}
|
||||
}
|
||||
|
@ -157,8 +157,8 @@ fn parse_out_type(
|
|||
}
|
||||
Err(syn::Error::new(
|
||||
span,
|
||||
"You must specify #[out()] argument in which declare output type of \
|
||||
handlers. For example, #[out(Result<(), Error>)]",
|
||||
"You must specify #[handler_out()] argument in which declare output \
|
||||
type of handlers. For example, #[handler_out(Result<(), Error>)]",
|
||||
))
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ use syn::{
|
|||
|
||||
use std::fmt::Write;
|
||||
|
||||
#[proc_macro_derive(DialogueState, attributes(handler, out, store))]
|
||||
#[proc_macro_derive(DialogueState, attributes(handler, handler_out, store))]
|
||||
pub fn derive_dialogue_state(item: TokenStream) -> TokenStream {
|
||||
let input = parse_macro_input!(item as ItemEnum);
|
||||
match dialogue_state::expand(input) {
|
||||
|
|
Loading…
Add table
Reference in a new issue