Fix compile error due to attempting to derive incorrect trait
All checks were successful
Build library & run tests / build (unix) (push) Successful in 1m27s
Build library & run tests / build (tcp) (push) Successful in 1m28s
Build library & run tests / docs (push) Successful in 1m28s

This commit is contained in:
Kodi Craft 2024-07-05 13:13:23 +02:00
parent a5c975d113
commit 62282eacd5
Signed by: kodi
GPG Key ID: 69D9EED60B242822

View File

@ -352,7 +352,7 @@ fn derive_protocol(input: proc_macro2::TokenStream) -> proc_macro2::TokenStream
// Create an error and result type for sending messages // Create an error and result type for sending messages
let error_enum = quote! { let error_enum = quote! {
#[derive(::std::fmt::Debug, ::std::clone::Clone, ::std::fmt::Display, ::thiserror::Error)] #[derive(::std::fmt::Debug, ::std::clone::Clone, ::thiserror::Error)]
#vis enum #error_enum_name { #vis enum #error_enum_name {
#[error("Failed to send query: {0}")] #[error("Failed to send query: {0}")]
SendError(::tokio::sync::mpsc::error::SendError<(u64, #question_enum_name)>), SendError(::tokio::sync::mpsc::error::SendError<(u64, #question_enum_name)>),