@@ -93,7 +93,7 @@ fn impl_struct(
93
93
let keys = named. iter ( ) . map ( |field| & field. ident ) ;
94
94
95
95
let from_json_impl = quote ! {
96
- fn from_json( value: & serde_json:: Value ) -> Result <Self , lbr_prelude:: error:: Error > {
96
+ fn from_json( value: & serde_json:: Value ) -> std :: result :: Result <Self , lbr_prelude:: error:: Error > {
97
97
match value {
98
98
serde_json:: Value :: Object ( dict) => {
99
99
#( #dict_get) *
@@ -135,7 +135,7 @@ fn impl_tuple(
135
135
} ;
136
136
137
137
let from_json_impl = quote ! {
138
- fn from_json( value: & serde_json:: Value ) -> Result <Self , lbr_prelude:: error:: Error > {
138
+ fn from_json( value: & serde_json:: Value ) -> std :: result :: Result <Self , lbr_prelude:: error:: Error > {
139
139
Vec :: from_json( value) . and_then( |vec: Vec <serde_json:: Value >| {
140
140
if vec. len( ) == #arity {
141
141
Ok ( Self (
@@ -166,7 +166,7 @@ fn impl_newtype() -> (proc_macro2::TokenStream, proc_macro2::TokenStream) {
166
166
} ;
167
167
168
168
let from_json_impl = quote ! {
169
- fn from_json( value: & serde_json:: Value ) -> Result <Self , lbr_prelude:: error:: Error > {
169
+ fn from_json( value: & serde_json:: Value ) -> std :: result :: Result <Self , lbr_prelude:: error:: Error > {
170
170
Ok ( Self ( lbr_prelude:: json:: Json :: from_json( value) ?) )
171
171
}
172
172
} ;
@@ -269,7 +269,7 @@ fn impl_enum(
269
269
} ) ;
270
270
271
271
let from_json_impl = quote ! {
272
- fn from_json( value: & serde_json:: Value ) -> Result <Self , lbr_prelude:: error:: Error > {
272
+ fn from_json( value: & serde_json:: Value ) -> std :: result :: Result <Self , lbr_prelude:: error:: Error > {
273
273
lbr_prelude:: json:: case_json_constructor( #ident_str, vec![
274
274
#( #from_json_match_arms) , *
275
275
] ,
0 commit comments