@@ -5,7 +5,7 @@ use crate::types::test_type;
55
66#[ test]
77fn test_naive_date_time_params ( ) {
8- fn make_check < ' a > ( time : & ' a str ) -> ( Option < NaiveDateTime > , & ' a str ) {
8+ fn make_check ( time : & str ) -> ( Option < NaiveDateTime > , & str ) {
99 (
1010 Some ( NaiveDateTime :: parse_from_str ( time, "'%Y-%m-%d %H:%M:%S.%f'" ) . unwrap ( ) ) ,
1111 time,
@@ -24,7 +24,7 @@ fn test_naive_date_time_params() {
2424
2525#[ test]
2626fn test_with_special_naive_date_time_params ( ) {
27- fn make_check < ' a > ( time : & ' a str ) -> ( Timestamp < NaiveDateTime > , & ' a str ) {
27+ fn make_check ( time : & str ) -> ( Timestamp < NaiveDateTime > , & str ) {
2828 (
2929 Timestamp :: Value (
3030 NaiveDateTime :: parse_from_str ( time, "'%Y-%m-%d %H:%M:%S.%f'" ) . unwrap ( ) ,
@@ -46,7 +46,7 @@ fn test_with_special_naive_date_time_params() {
4646
4747#[ test]
4848fn test_date_time_params ( ) {
49- fn make_check < ' a > ( time : & ' a str ) -> ( Option < DateTime < Utc > > , & ' a str ) {
49+ fn make_check ( time : & str ) -> ( Option < DateTime < Utc > > , & str ) {
5050 (
5151 Some (
5252 Utc . datetime_from_str ( time, "'%Y-%m-%d %H:%M:%S.%f'" )
@@ -68,7 +68,7 @@ fn test_date_time_params() {
6868
6969#[ test]
7070fn test_with_special_date_time_params ( ) {
71- fn make_check < ' a > ( time : & ' a str ) -> ( Timestamp < DateTime < Utc > > , & ' a str ) {
71+ fn make_check ( time : & str ) -> ( Timestamp < DateTime < Utc > > , & str ) {
7272 (
7373 Timestamp :: Value (
7474 Utc . datetime_from_str ( time, "'%Y-%m-%d %H:%M:%S.%f'" )
@@ -91,7 +91,7 @@ fn test_with_special_date_time_params() {
9191
9292#[ test]
9393fn test_date_params ( ) {
94- fn make_check < ' a > ( time : & ' a str ) -> ( Option < NaiveDate > , & ' a str ) {
94+ fn make_check ( time : & str ) -> ( Option < NaiveDate > , & str ) {
9595 (
9696 Some ( NaiveDate :: parse_from_str ( time, "'%Y-%m-%d'" ) . unwrap ( ) ) ,
9797 time,
@@ -110,7 +110,7 @@ fn test_date_params() {
110110
111111#[ test]
112112fn test_with_special_date_params ( ) {
113- fn make_check < ' a > ( date : & ' a str ) -> ( Date < NaiveDate > , & ' a str ) {
113+ fn make_check ( date : & str ) -> ( Date < NaiveDate > , & str ) {
114114 (
115115 Date :: Value ( NaiveDate :: parse_from_str ( date, "'%Y-%m-%d'" ) . unwrap ( ) ) ,
116116 date,
@@ -130,7 +130,7 @@ fn test_with_special_date_params() {
130130
131131#[ test]
132132fn test_time_params ( ) {
133- fn make_check < ' a > ( time : & ' a str ) -> ( Option < NaiveTime > , & ' a str ) {
133+ fn make_check ( time : & str ) -> ( Option < NaiveTime > , & str ) {
134134 (
135135 Some ( NaiveTime :: parse_from_str ( time, "'%H:%M:%S.%f'" ) . unwrap ( ) ) ,
136136 time,
0 commit comments