11pub use crate :: error:: TryGetError ;
22use crate :: {
3- error:: { json_err , type_err, DbErr } ,
3+ error:: { type_err, DbErr } ,
44 SelectGetableValue , SelectorRaw , Statement ,
55} ;
66use std:: fmt;
@@ -1342,15 +1342,19 @@ where
13421342 debug_print ! ( "{:#?}" , e. to_string( ) ) ;
13431343 err_null_idx_col ( idx)
13441344 } )
1345- . and_then ( |json| serde_json:: from_value ( json) . map_err ( |e| json_err ( e) . into ( ) ) ) ,
1345+ . and_then ( |json| {
1346+ serde_json:: from_value ( json) . map_err ( |e| crate :: error:: json_err ( e) . into ( ) )
1347+ } ) ,
13461348 #[ cfg( feature = "proxy" ) ]
13471349 QueryResultRow :: Proxy ( row) => row
13481350 . try_get :: < serde_json:: Value , I > ( idx)
13491351 . map_err ( |e| {
13501352 debug_print ! ( "{:#?}" , e. to_string( ) ) ;
13511353 err_null_idx_col ( idx)
13521354 } )
1353- . and_then ( |json| serde_json:: from_value ( json) . map_err ( |e| json_err ( e) . into ( ) ) ) ,
1355+ . and_then ( |json| {
1356+ serde_json:: from_value ( json) . map_err ( |e| crate :: error:: json_err ( e) . into ( ) )
1357+ } ) ,
13541358 #[ allow( unreachable_patterns) ]
13551359 _ => unreachable ! ( ) ,
13561360 }
@@ -1362,7 +1366,7 @@ where
13621366 serde_json:: Value :: Array ( values) => {
13631367 let mut res = Vec :: new ( ) ;
13641368 for item in values {
1365- res. push ( serde_json:: from_value ( item) . map_err ( json_err) ?) ;
1369+ res. push ( serde_json:: from_value ( item) . map_err ( crate :: error :: json_err) ?) ;
13661370 }
13671371 Ok ( res)
13681372 }
0 commit comments