@@ -13,15 +13,15 @@ impl DbConnection for DatabaseConnection {
1313 & self ,
1414 stmt : & str ,
1515 params : & [ & ' a dyn QueryParameter ] ,
16- ) -> Result < CanyonRows , Box < ( dyn Error + Send + Sync ) > > {
16+ ) -> Result < CanyonRows , Box < dyn Error + Send + Sync > > {
1717 db_conn_query_rows_impl ( self , stmt, params) . await
1818 }
1919
2020 async fn query < ' a , S , R > (
2121 & self ,
2222 stmt : S ,
23- params : & [ & ' a ( dyn QueryParameter ) ] ,
24- ) -> Result < Vec < R > , Box < ( dyn Error + Send + Sync ) > >
23+ params : & [ & ' a dyn QueryParameter ] ,
24+ ) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
2525 where
2626 S : AsRef < str > + Send ,
2727 R : RowMapper ,
@@ -34,7 +34,7 @@ impl DbConnection for DatabaseConnection {
3434 & self ,
3535 stmt : & str ,
3636 params : & [ & ' a dyn QueryParameter ] ,
37- ) -> Result < Option < R :: Output > , Box < ( dyn Error + Send + Sync ) > >
37+ ) -> Result < Option < R :: Output > , Box < dyn Error + Send + Sync > >
3838 where
3939 R : RowMapper ,
4040 {
@@ -45,19 +45,19 @@ impl DbConnection for DatabaseConnection {
4545 & self ,
4646 stmt : & str ,
4747 params : & [ & ' a dyn QueryParameter ] ,
48- ) -> Result < T , Box < ( dyn Error + Send + Sync ) > > {
48+ ) -> Result < T , Box < dyn Error + Send + Sync > > {
4949 db_conn_query_one_for_impl :: < T > ( self , stmt, params) . await
5050 }
5151
5252 async fn execute < ' a > (
5353 & self ,
5454 stmt : & str ,
5555 params : & [ & ' a dyn QueryParameter ] ,
56- ) -> Result < u64 , Box < ( dyn Error + Send + Sync ) > > {
56+ ) -> Result < u64 , Box < dyn Error + Send + Sync > > {
5757 db_conn_execute_impl ( self , stmt, params) . await
5858 }
5959
60- fn get_database_type ( & self ) -> Result < DatabaseType , Box < ( dyn Error + Send + Sync ) > > {
60+ fn get_database_type ( & self ) -> Result < DatabaseType , Box < dyn Error + Send + Sync > > {
6161 Ok ( self . get_db_type ( ) )
6262 }
6363}
@@ -67,15 +67,15 @@ impl DbConnection for &DatabaseConnection {
6767 & self ,
6868 stmt : & str ,
6969 params : & [ & ' a dyn QueryParameter ] ,
70- ) -> Result < CanyonRows , Box < ( dyn Error + Send + Sync ) > > {
70+ ) -> Result < CanyonRows , Box < dyn Error + Send + Sync > > {
7171 db_conn_query_rows_impl ( self , stmt, params) . await
7272 }
7373
7474 async fn query < ' a , S , R > (
7575 & self ,
7676 stmt : S ,
77- params : & [ & ' a ( dyn QueryParameter ) ] ,
78- ) -> Result < Vec < R > , Box < ( dyn Error + Send + Sync ) > >
77+ params : & [ & ' a dyn QueryParameter ] ,
78+ ) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
7979 where
8080 S : AsRef < str > + Send ,
8181 R : RowMapper ,
@@ -88,7 +88,7 @@ impl DbConnection for &DatabaseConnection {
8888 & self ,
8989 stmt : & str ,
9090 params : & [ & ' a dyn QueryParameter ] ,
91- ) -> Result < Option < R :: Output > , Box < ( dyn Error + Send + Sync ) > >
91+ ) -> Result < Option < R :: Output > , Box < dyn Error + Send + Sync > >
9292 where
9393 R : RowMapper ,
9494 {
@@ -99,19 +99,19 @@ impl DbConnection for &DatabaseConnection {
9999 & self ,
100100 stmt : & str ,
101101 params : & [ & ' a dyn QueryParameter ] ,
102- ) -> Result < T , Box < ( dyn Error + Send + Sync ) > > {
102+ ) -> Result < T , Box < dyn Error + Send + Sync > > {
103103 db_conn_query_one_for_impl :: < T > ( self , stmt, params) . await
104104 }
105105
106106 async fn execute < ' a > (
107107 & self ,
108108 stmt : & str ,
109109 params : & [ & ' a dyn QueryParameter ] ,
110- ) -> Result < u64 , Box < ( dyn Error + Send + Sync ) > > {
110+ ) -> Result < u64 , Box < dyn Error + Send + Sync > > {
111111 db_conn_execute_impl ( self , stmt, params) . await
112112 }
113113
114- fn get_database_type ( & self ) -> Result < DatabaseType , Box < ( dyn Error + Send + Sync ) > > {
114+ fn get_database_type ( & self ) -> Result < DatabaseType , Box < dyn Error + Send + Sync > > {
115115 Ok ( self . get_db_type ( ) )
116116 }
117117}
@@ -121,15 +121,15 @@ impl DbConnection for &mut DatabaseConnection {
121121 & self ,
122122 stmt : & str ,
123123 params : & [ & ' a dyn QueryParameter ] ,
124- ) -> Result < CanyonRows , Box < ( dyn Error + Send + Sync ) > > {
124+ ) -> Result < CanyonRows , Box < dyn Error + Send + Sync > > {
125125 db_conn_query_rows_impl ( self , stmt, params) . await
126126 }
127127
128128 async fn query < ' a , S , R > (
129129 & self ,
130130 stmt : S ,
131- params : & [ & ' a ( dyn QueryParameter ) ] ,
132- ) -> Result < Vec < R > , Box < ( dyn Error + Send + Sync ) > >
131+ params : & [ & ' a dyn QueryParameter ] ,
132+ ) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
133133 where
134134 S : AsRef < str > + Send ,
135135 R : RowMapper ,
@@ -142,7 +142,7 @@ impl DbConnection for &mut DatabaseConnection {
142142 & self ,
143143 stmt : & str ,
144144 params : & [ & ' a dyn QueryParameter ] ,
145- ) -> Result < Option < R :: Output > , Box < ( dyn Error + Send + Sync ) > >
145+ ) -> Result < Option < R :: Output > , Box < dyn Error + Send + Sync > >
146146 where
147147 R : RowMapper ,
148148 {
@@ -153,19 +153,19 @@ impl DbConnection for &mut DatabaseConnection {
153153 & self ,
154154 stmt : & str ,
155155 params : & [ & ' a dyn QueryParameter ] ,
156- ) -> Result < T , Box < ( dyn Error + Send + Sync ) > > {
156+ ) -> Result < T , Box < dyn Error + Send + Sync > > {
157157 db_conn_query_one_for_impl :: < T > ( self , stmt, params) . await
158158 }
159159
160160 async fn execute < ' a > (
161161 & self ,
162162 stmt : & str ,
163163 params : & [ & ' a dyn QueryParameter ] ,
164- ) -> Result < u64 , Box < ( dyn Error + Send + Sync ) > > {
164+ ) -> Result < u64 , Box < dyn Error + Send + Sync > > {
165165 db_conn_execute_impl ( self , stmt, params) . await
166166 }
167167
168- fn get_database_type ( & self ) -> Result < DatabaseType , Box < ( dyn Error + Send + Sync ) > > {
168+ fn get_database_type ( & self ) -> Result < DatabaseType , Box < dyn Error + Send + Sync > > {
169169 Ok ( self . get_db_type ( ) )
170170 }
171171}
@@ -210,8 +210,8 @@ where
210210pub ( crate ) async fn db_conn_query_impl < ' a , S , R > (
211211 c : & DatabaseConnection ,
212212 stmt : S ,
213- params : & [ & ' a ( dyn QueryParameter ) ] ,
214- ) -> Result < Vec < R > , Box < ( dyn Error + Send + Sync ) > >
213+ params : & [ & ' a dyn QueryParameter ] ,
214+ ) -> Result < Vec < R > , Box < dyn Error + Send + Sync > >
215215where
216216 S : AsRef < str > + Send ,
217217 R : RowMapper ,
@@ -233,7 +233,7 @@ pub(crate) async fn db_conn_query_one_for_impl<'a, T>(
233233 c : & DatabaseConnection ,
234234 stmt : & str ,
235235 params : & [ & ' a dyn QueryParameter ] ,
236- ) -> Result < T , Box < ( dyn Error + Send + Sync ) > >
236+ ) -> Result < T , Box < dyn Error + Send + Sync > >
237237where
238238 T : FromSqlOwnedValue < T > ,
239239{
@@ -253,7 +253,7 @@ pub(crate) async fn db_conn_execute_impl<'a>(
253253 c : & DatabaseConnection ,
254254 stmt : & str ,
255255 params : & [ & ' a dyn QueryParameter ] ,
256- ) -> Result < u64 , Box < ( dyn Error + Send + Sync ) > > {
256+ ) -> Result < u64 , Box < dyn Error + Send + Sync > > {
257257 match c {
258258 #[ cfg( feature = "postgres" ) ]
259259 DatabaseConnection :: Postgres ( client) => client. execute ( stmt, params) . await ,
0 commit comments