Skip to content

Commit f3cf448

Browse files
sfacklerconradludgate
authored andcommitted
fix clippy
1 parent 6006b9c commit f3cf448

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tokio-postgres/src/generic_client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ pub trait GenericClient: private::Sealed {
6666
parameter_types: &[Type],
6767
) -> Result<Statement, Error>;
6868

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

72-
/// Like `Client::batch_execute`.
72+
/// Like [`Client::batch_execute`].
7373
async fn batch_execute(&self, query: &str) -> Result<(), Error>;
7474

7575
/// Returns a reference to the underlying `Client`.
@@ -148,7 +148,7 @@ impl GenericClient for Client {
148148
self.prepare_typed(query, parameter_types).await
149149
}
150150

151-
async fn transaction(&mut self) -> Result<Transaction<'_>, Error> {
151+
async fn transaction<'a>(&'a mut self) -> Result<Transaction<'a>, Error> {
152152
self.transaction().await
153153
}
154154

tokio-postgres/src/transaction_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<'a> TransactionBuilder<'a> {
113113
done: bool,
114114
}
115115

116-
impl<'a> Drop for RollbackIfNotDone<'a> {
116+
impl Drop for RollbackIfNotDone<'_> {
117117
fn drop(&mut self) {
118118
if self.done {
119119
return;

0 commit comments

Comments
 (0)