@@ -121,11 +121,7 @@ pub trait SimpleQueryHandler: Send + Sync {
121121 }
122122
123123 /// Provide your query implementation using the incoming query string.
124- async fn do_query < ' a , ' b : ' a , C > (
125- & ' b self ,
126- client : & mut C ,
127- query : & ' a str ,
128- ) -> PgWireResult < Vec < Response < ' a > > >
124+ async fn do_query < ' a , C > ( & self , client : & mut C , query : & str ) -> PgWireResult < Vec < Response < ' a > > >
129125 where
130126 C : ClientInfo + ClientPortalStore + Sink < PgWireBackendMessage > + Unpin + Send + Sync ,
131127 C :: Error : Debug ,
@@ -388,10 +384,10 @@ pub trait ExtendedQueryHandler: Send + Sync {
388384 /// - `client`: Information of the client sending the query
389385 /// - `portal`: Statement and parameters for the query
390386 /// - `max_rows`: Max requested rows of the query
391- async fn do_query < ' a , ' b : ' a , C > (
392- & ' b self ,
387+ async fn do_query < ' a , C > (
388+ & self ,
393389 client : & mut C ,
394- portal : & ' a Portal < Self :: Statement > ,
390+ portal : & Portal < Self :: Statement > ,
395391 max_rows : usize ,
396392 ) -> PgWireResult < Response < ' a > >
397393 where
@@ -522,10 +518,10 @@ impl ExtendedQueryHandler for PlaceholderExtendedQueryHandler {
522518 unimplemented ! ( "Extended Query is not implemented on this server." )
523519 }
524520
525- async fn do_query < ' a , ' b : ' a , C > (
526- & ' b self ,
521+ async fn do_query < ' a , C > (
522+ & self ,
527523 _client : & mut C ,
528- _portal : & ' a Portal < Self :: Statement > ,
524+ _portal : & Portal < Self :: Statement > ,
529525 _max_rows : usize ,
530526 ) -> PgWireResult < Response < ' a > >
531527 where
0 commit comments