@@ -19,7 +19,7 @@ impl ToSql<TinyInt, Mysql> for i8 {
1919}
2020
2121impl FromSql < TinyInt , Mysql > for i8 {
22- fn from_sql ( value : Option < MysqlValue > ) -> deserialize:: Result < Self > {
22+ fn from_sql ( value : Option < MysqlValue < ' _ > > ) -> deserialize:: Result < Self > {
2323 let value = not_none ! ( value) ;
2424 let bytes = value. as_bytes ( ) ;
2525 Ok ( bytes[ 0 ] as i8 )
@@ -37,7 +37,7 @@ impl ToSql<Unsigned<TinyInt>, Mysql> for u8 {
3737}
3838
3939impl FromSql < Unsigned < TinyInt > , Mysql > for u8 {
40- fn from_sql ( bytes : Option < MysqlValue > ) -> deserialize:: Result < Self > {
40+ fn from_sql ( bytes : Option < MysqlValue < ' _ > > ) -> deserialize:: Result < Self > {
4141 let signed: i8 = FromSql :: < TinyInt , Mysql > :: from_sql ( bytes) ?;
4242 Ok ( signed as u8 )
4343 }
@@ -50,7 +50,7 @@ impl ToSql<Unsigned<SmallInt>, Mysql> for u16 {
5050}
5151
5252impl FromSql < Unsigned < SmallInt > , Mysql > for u16 {
53- fn from_sql ( bytes : Option < MysqlValue > ) -> deserialize:: Result < Self > {
53+ fn from_sql ( bytes : Option < MysqlValue < ' _ > > ) -> deserialize:: Result < Self > {
5454 let signed: i16 = FromSql :: < SmallInt , Mysql > :: from_sql ( bytes) ?;
5555 Ok ( signed as u16 )
5656 }
@@ -63,7 +63,7 @@ impl ToSql<Unsigned<Integer>, Mysql> for u32 {
6363}
6464
6565impl FromSql < Unsigned < Integer > , Mysql > for u32 {
66- fn from_sql ( bytes : Option < MysqlValue > ) -> deserialize:: Result < Self > {
66+ fn from_sql ( bytes : Option < MysqlValue < ' _ > > ) -> deserialize:: Result < Self > {
6767 let signed: i32 = FromSql :: < Integer , Mysql > :: from_sql ( bytes) ?;
6868 Ok ( signed as u32 )
6969 }
@@ -76,7 +76,7 @@ impl ToSql<Unsigned<BigInt>, Mysql> for u64 {
7676}
7777
7878impl FromSql < Unsigned < BigInt > , Mysql > for u64 {
79- fn from_sql ( bytes : Option < MysqlValue > ) -> deserialize:: Result < Self > {
79+ fn from_sql ( bytes : Option < MysqlValue < ' _ > > ) -> deserialize:: Result < Self > {
8080 let signed: i64 = FromSql :: < BigInt , Mysql > :: from_sql ( bytes) ?;
8181 Ok ( signed as u64 )
8282 }
@@ -90,7 +90,7 @@ impl ToSql<Bool, Mysql> for bool {
9090}
9191
9292impl FromSql < Bool , Mysql > for bool {
93- fn from_sql ( bytes : Option < MysqlValue > ) -> deserialize:: Result < Self > {
93+ fn from_sql ( bytes : Option < MysqlValue < ' _ > > ) -> deserialize:: Result < Self > {
9494 Ok ( not_none ! ( bytes) . as_bytes ( ) . iter ( ) . any ( |x| * x != 0 ) )
9595 }
9696}
0 commit comments