@@ -110,10 +110,10 @@ impl SqlPageFunctionCall {
110
110
} )
111
111
}
112
112
113
- pub async fn evaluate < ' a , ' b > (
113
+ pub async fn evaluate < ' a > (
114
114
& self ,
115
115
request : & ' a RequestInfo ,
116
- db_connection : & ' b mut DbConn ,
116
+ db_connection : & mut DbConn ,
117
117
) -> anyhow:: Result < Option < Cow < ' a , str > > > {
118
118
let mut params = Vec :: with_capacity ( self . arguments . len ( ) ) ;
119
119
for param in & self . arguments {
@@ -149,10 +149,10 @@ impl std::fmt::Display for SqlPageFunctionCall {
149
149
150
150
/// Extracts the value of a parameter from the request.
151
151
/// Returns `Ok(None)` when NULL should be used as the parameter value.
152
- pub ( super ) async fn extract_req_param < ' a , ' b > (
152
+ pub ( super ) async fn extract_req_param < ' a > (
153
153
param : & StmtParam ,
154
154
request : & ' a RequestInfo ,
155
- db_connection : & ' b mut DbConn ,
155
+ db_connection : & mut DbConn ,
156
156
) -> anyhow:: Result < Option < Cow < ' a , str > > > {
157
157
Ok ( match param {
158
158
// sync functions
@@ -181,10 +181,10 @@ pub(super) async fn extract_req_param<'a, 'b>(
181
181
} )
182
182
}
183
183
184
- async fn concat_params < ' a , ' b > (
184
+ async fn concat_params < ' a > (
185
185
args : & [ StmtParam ] ,
186
186
request : & ' a RequestInfo ,
187
- db_connection : & ' b mut DbConn ,
187
+ db_connection : & mut DbConn ,
188
188
) -> anyhow:: Result < Option < Cow < ' a , str > > > {
189
189
let mut result = String :: new ( ) ;
190
190
for arg in args {
@@ -196,10 +196,10 @@ async fn concat_params<'a, 'b>(
196
196
Ok ( Some ( Cow :: Owned ( result) ) )
197
197
}
198
198
199
- async fn coalesce_params < ' a , ' b > (
199
+ async fn coalesce_params < ' a > (
200
200
args : & [ StmtParam ] ,
201
201
request : & ' a RequestInfo ,
202
- db_connection : & ' b mut DbConn ,
202
+ db_connection : & mut DbConn ,
203
203
) -> anyhow:: Result < Option < Cow < ' a , str > > > {
204
204
for arg in args {
205
205
if let Some ( arg) = Box :: pin ( extract_req_param ( arg, request, db_connection) ) . await ? {
@@ -209,10 +209,10 @@ async fn coalesce_params<'a, 'b>(
209
209
Ok ( None )
210
210
}
211
211
212
- async fn json_object_params < ' a , ' b > (
212
+ async fn json_object_params < ' a > (
213
213
args : & [ StmtParam ] ,
214
214
request : & ' a RequestInfo ,
215
- db_connection : & ' b mut DbConn ,
215
+ db_connection : & mut DbConn ,
216
216
) -> anyhow:: Result < Option < Cow < ' a , str > > > {
217
217
use serde:: { ser:: SerializeMap , Serializer } ;
218
218
let mut result = Vec :: new ( ) ;
@@ -247,10 +247,10 @@ async fn json_object_params<'a, 'b>(
247
247
Ok ( Some ( Cow :: Owned ( String :: from_utf8 ( result) ?) ) )
248
248
}
249
249
250
- async fn json_array_params < ' a , ' b > (
250
+ async fn json_array_params < ' a > (
251
251
args : & [ StmtParam ] ,
252
252
request : & ' a RequestInfo ,
253
- db_connection : & ' b mut DbConn ,
253
+ db_connection : & mut DbConn ,
254
254
) -> anyhow:: Result < Option < Cow < ' a , str > > > {
255
255
use serde:: { ser:: SerializeSeq , Serializer } ;
256
256
let mut result = Vec :: new ( ) ;
0 commit comments