Skip to content

Commit 24d4b92

Browse files
committed
Whitelist clippy lint
async_trait requires this to be explicit
1 parent 3ba416d commit 24d4b92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tokio-postgres/src/transaction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ impl crate::GenericClient for Transaction<'_> {
311311
self.prepare(query).await
312312
}
313313

314+
#[allow(clippy::needless_lifetimes)]
314315
async fn transaction<'a>(&'a mut self) -> Result<Transaction<'a>, Error> {
315316
self.transaction().await
316317
}

0 commit comments

Comments
 (0)