@@ -50,9 +50,9 @@ impl MacroType {
50
50
/// implements `From<Self> for solana_program::program_error::ProgramError`
51
51
pub fn into_program_error ( ident : & Ident ) -> proc_macro2:: TokenStream {
52
52
quote ! {
53
- impl From <#ident> for solana_program:: program_error:: ProgramError {
53
+ impl From <#ident> for :: solana_program:: program_error:: ProgramError {
54
54
fn from( e: #ident) -> Self {
55
- solana_program:: program_error:: ProgramError :: Custom ( e as u32 )
55
+ :: solana_program:: program_error:: ProgramError :: Custom ( e as u32 )
56
56
}
57
57
}
58
58
}
@@ -61,7 +61,7 @@ pub fn into_program_error(ident: &Ident) -> proc_macro2::TokenStream {
61
61
/// Builds the implementation of `solana_program::decode_error::DecodeError<T>`
62
62
pub fn decode_error ( ident : & Ident ) -> proc_macro2:: TokenStream {
63
63
quote ! {
64
- impl <T > solana_program:: decode_error:: DecodeError <T > for #ident {
64
+ impl <T > :: solana_program:: decode_error:: DecodeError <T > for #ident {
65
65
fn type_of( ) -> & ' static str {
66
66
stringify!( #ident)
67
67
}
@@ -81,18 +81,18 @@ pub fn print_program_error(
81
81
. unwrap_or_else ( || String :: from ( "Unknown custom program error" ) ) ;
82
82
quote ! {
83
83
#ident:: #variant_ident => {
84
- solana_program:: msg!( #error_msg)
84
+ :: solana_program:: msg!( #error_msg)
85
85
}
86
86
}
87
87
} ) ;
88
88
quote ! {
89
- impl solana_program:: program_error:: PrintProgramError for #ident {
89
+ impl :: solana_program:: program_error:: PrintProgramError for #ident {
90
90
fn print<E >( & self )
91
91
where
92
92
E : ' static
93
93
+ std:: error:: Error
94
- + solana_program:: decode_error:: DecodeError <E >
95
- + solana_program:: program_error:: PrintProgramError
94
+ + :: solana_program:: decode_error:: DecodeError <E >
95
+ + :: solana_program:: program_error:: PrintProgramError
96
96
+ num_traits:: FromPrimitive ,
97
97
{
98
98
match self {
0 commit comments