mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-06 14:27:38 +03:00
Try to remove "doesn't implement Debug" in fallback expansion
This commit is contained in:
parent
d7e3bdd980
commit
1567f40ec3
2 changed files with 13 additions and 12 deletions
|
@ -36,7 +36,10 @@ fn fallback(input: &DeriveInput, error: syn::Error) -> TokenStream {
|
|||
#error
|
||||
|
||||
#[allow(unused_qualifications)]
|
||||
impl #impl_generics std::error::Error for #ty #ty_generics #where_clause {}
|
||||
impl #impl_generics std::error::Error for #ty #ty_generics #where_clause
|
||||
where
|
||||
#ty #ty_generics: ::core::fmt::Debug,
|
||||
{}
|
||||
|
||||
#[allow(unused_qualifications)]
|
||||
impl #impl_generics ::core::fmt::Display for #ty #ty_generics #where_clause {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue