Skip to content

Commit 458ae84

Browse files
committed
Fix CI warnings
Fallout from the new `elided_named_lifetimes` lint.
1 parent 67739c3 commit 458ae84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

database/src/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub mod sqlite;
1212
#[async_trait::async_trait]
1313
pub trait Connection: Send + Sync {
1414
async fn maybe_create_indices(&mut self);
15-
async fn transaction(&mut self) -> Box<dyn Transaction + '_>;
15+
async fn transaction<'a>(&'a mut self) -> Box<dyn Transaction + 'a>;
1616

1717
async fn load_index(&mut self) -> Index;
1818

database/src/pool/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ where
553553
P: Send + Sync + PClient,
554554
{
555555
async fn maybe_create_indices(&mut self) {}
556-
async fn transaction(&mut self) -> Box<dyn Transaction + '_> {
556+
async fn transaction<'a>(&'a mut self) -> Box<dyn Transaction + 'a> {
557557
let statements = self.statements().clone();
558558
let tx = self.conn_mut().transaction().await.unwrap();
559559
Box::new(PostgresTransaction {

database/src/pool/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ impl Connection for SqliteConnection {
451451
.unwrap();
452452
}
453453

454-
async fn transaction(&mut self) -> Box<dyn Transaction + '_> {
454+
async fn transaction<'a>(&'a mut self) -> Box<dyn Transaction + 'a> {
455455
self.raw().execute_batch("BEGIN DEFERRED").unwrap();
456456
Box::new(SqliteTransaction {
457457
conn: self,

0 commit comments

Comments
 (0)