Remove useless identity conversions

This commit is contained in:
Maybe Waffle 2022-08-26 20:26:21 +04:00
parent 5477535834
commit 25f9bff97a
2 changed files with 2 additions and 2 deletions

View file

@ -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( fn impl_commands(

View file

@ -10,7 +10,7 @@ pub(crate) fn compile_error<T>(data: T) -> Error
where where
T: ToTokens, T: ToTokens,
{ {
Error(TokenStream::from(quote! { compile_error! { #data } })) Error(quote! { compile_error! { #data } })
} }
impl From<Error> for proc_macro2::TokenStream { impl From<Error> for proc_macro2::TokenStream {