Skip to content

Commit

Permalink
Fix elided_named_lifetimes warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bikeshedder committed Feb 3, 2025
1 parent fea9c7d commit e094de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgres/src/generic_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub trait GenericClient: Sync + private::Sealed {
async fn prepare_typed_cached(&self, query: &str, types: &[Type]) -> Result<Statement, Error>;

/// Like `Client::transaction`.
async fn transaction(&mut self) -> Result<Transaction<'_>, Error>;
async fn transaction<'a>(&'a mut self) -> Result<Transaction<'a>, Error>;

/// Like `Client::batch_execute`.
async fn batch_execute(&self, query: &str) -> Result<(), Error>;
Expand Down Expand Up @@ -167,7 +167,7 @@ impl GenericClient for Client {
ClientWrapper::prepare_typed_cached(self, query, types).await
}

async fn transaction(&mut self) -> Result<Transaction<'_>, Error> {
async fn transaction<'a>(&'a mut self) -> Result<Transaction<'a>, Error> {
ClientWrapper::transaction(self).await
}

Expand Down

0 comments on commit e094de1

Please sign in to comment.