@@ -14,7 +14,7 @@ fn base() -> NaiveDateTime {
1414 . unwrap ( )
1515}
1616
17- impl < ' a > FromSql < ' a > for NaiveDateTime {
17+ impl FromSql < ' _ > for NaiveDateTime {
1818 fn from_sql ( _: & Type , raw : & [ u8 ] ) -> Result < NaiveDateTime , Box < dyn Error + Sync + Send > > {
1919 let t = types:: timestamp_from_sql ( raw) ?;
2020 base ( )
@@ -39,7 +39,7 @@ impl ToSql for NaiveDateTime {
3939 to_sql_checked ! ( ) ;
4040}
4141
42- impl < ' a > FromSql < ' a > for DateTime < Utc > {
42+ impl FromSql < ' _ > for DateTime < Utc > {
4343 fn from_sql ( type_ : & Type , raw : & [ u8 ] ) -> Result < DateTime < Utc > , Box < dyn Error + Sync + Send > > {
4444 let naive = NaiveDateTime :: from_sql ( type_, raw) ?;
4545 Ok ( Utc . from_utc_datetime ( & naive) )
@@ -61,7 +61,7 @@ impl ToSql for DateTime<Utc> {
6161 to_sql_checked ! ( ) ;
6262}
6363
64- impl < ' a > FromSql < ' a > for DateTime < Local > {
64+ impl FromSql < ' _ > for DateTime < Local > {
6565 fn from_sql ( type_ : & Type , raw : & [ u8 ] ) -> Result < DateTime < Local > , Box < dyn Error + Sync + Send > > {
6666 let utc = DateTime :: < Utc > :: from_sql ( type_, raw) ?;
6767 Ok ( utc. with_timezone ( & Local ) )
@@ -83,7 +83,7 @@ impl ToSql for DateTime<Local> {
8383 to_sql_checked ! ( ) ;
8484}
8585
86- impl < ' a > FromSql < ' a > for DateTime < FixedOffset > {
86+ impl FromSql < ' _ > for DateTime < FixedOffset > {
8787 fn from_sql (
8888 type_ : & Type ,
8989 raw : & [ u8 ] ,
@@ -108,7 +108,7 @@ impl ToSql for DateTime<FixedOffset> {
108108 to_sql_checked ! ( ) ;
109109}
110110
111- impl < ' a > FromSql < ' a > for NaiveDate {
111+ impl FromSql < ' _ > for NaiveDate {
112112 fn from_sql ( _: & Type , raw : & [ u8 ] ) -> Result < NaiveDate , Box < dyn Error + Sync + Send > > {
113113 let jd = types:: date_from_sql ( raw) ?;
114114 base ( )
@@ -135,7 +135,7 @@ impl ToSql for NaiveDate {
135135 to_sql_checked ! ( ) ;
136136}
137137
138- impl < ' a > FromSql < ' a > for NaiveTime {
138+ impl FromSql < ' _ > for NaiveTime {
139139 fn from_sql ( _: & Type , raw : & [ u8 ] ) -> Result < NaiveTime , Box < dyn Error + Sync + Send > > {
140140 let usec = types:: time_from_sql ( raw) ?;
141141 Ok ( NaiveTime :: from_hms_opt ( 0 , 0 , 0 ) . unwrap ( ) + Duration :: microseconds ( usec) )
0 commit comments