@@ -38,7 +38,10 @@ macro_rules! to_sql_checked {
38
38
ty: & $crate:: types:: Type ,
39
39
out: & mut :: std:: vec:: Vec <u8 >,
40
40
ctx: & $crate:: types:: SessionInfo )
41
- -> :: std:: result:: Result <$crate:: types:: IsNull , Box <:: std:: error:: Error + :: std:: marker:: Sync + :: std:: marker:: Send >> {
41
+ -> :: std:: result:: Result <$crate:: types:: IsNull ,
42
+ Box <:: std:: error:: Error +
43
+ :: std:: marker:: Sync +
44
+ :: std:: marker:: Send >> {
42
45
$crate:: types:: __to_sql_checked( self , ty, out, ctx)
43
46
}
44
47
}
@@ -411,7 +414,10 @@ impl FromSql for String {
411
414
macro_rules! simple_from {
412
415
( $t: ty, $f: ident, $( $expected: pat) ,+) => {
413
416
impl FromSql for $t {
414
- fn from_sql( _: & Type , raw: & [ u8 ] , _: & SessionInfo ) -> Result <$t, Box <Error + Sync + Send >> {
417
+ fn from_sql( _: & Type ,
418
+ raw: & [ u8 ] ,
419
+ _: & SessionInfo )
420
+ -> Result <$t, Box <Error + Sync + Send >> {
415
421
types:: $f( raw)
416
422
}
417
423
@@ -706,7 +712,11 @@ impl ToSql for String {
706
712
macro_rules! simple_to {
707
713
( $t: ty, $f: ident, $( $expected: pat) ,+) => {
708
714
impl ToSql for $t {
709
- fn to_sql( & self , _: & Type , w: & mut Vec <u8 >, _: & SessionInfo ) -> Result <IsNull , Box <Error + Sync + Send >> {
715
+ fn to_sql( & self ,
716
+ _: & Type ,
717
+ w: & mut Vec <u8 >,
718
+ _: & SessionInfo )
719
+ -> Result <IsNull , Box <Error + Sync + Send >> {
710
720
types:: $f( * self , w) ;
711
721
Ok ( IsNull :: No )
712
722
}
0 commit comments