Improve pallet macro error message by deriving codec with no bound for Call enum (#8851)

* improve span for call

* fix stderr file paths
This commit is contained in:
Guillaume Thiolliere
2021-05-19 11:23:06 +02:00
committed by GitHub
parent ee726ed55d
commit c48b460b2e
3 changed files with 27 additions and 21 deletions
@@ -89,6 +89,8 @@ pub fn expand_call(def: &mut Def) -> proc_macro2::TokenStream {
#frame_support::codec::Encode,
#frame_support::codec::Decode,
)]
#[codec(encode_bound())]
#[codec(decode_bound())]
#[allow(non_camel_case_types)]
pub enum #call_ident<#type_decl_bounded_gen> #where_clause {
#[doc(hidden)]