mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Remove useless identity conversions
This commit is contained in:
parent
5477535834
commit
25f9bff97a
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ pub(crate) fn bot_commands_impl(input: DeriveInput) -> Result<TokenStream> {
|
|||
}
|
||||
};
|
||||
|
||||
Ok(TokenStream::from(trait_impl))
|
||||
Ok(trait_impl)
|
||||
}
|
||||
|
||||
fn impl_commands(
|
||||
|
|
|
@ -10,7 +10,7 @@ pub(crate) fn compile_error<T>(data: T) -> Error
|
|||
where
|
||||
T: ToTokens,
|
||||
{
|
||||
Error(TokenStream::from(quote! { compile_error! { #data } }))
|
||||
Error(quote! { compile_error! { #data } })
|
||||
}
|
||||
|
||||
impl From<Error> for proc_macro2::TokenStream {
|
||||
|
|
Loading…
Reference in a new issue