Skip to content

Commit 72d38b6

Browse files
Fix inconsistent trait impl
This was exposed by a recent fix on nightly to rust-lang/rust#71550.
1 parent 75936b2 commit 72d38b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/src/pool/both.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl<'a> Connection for BothTransaction<'a> {
196196
self.b.conn().maybe_create_indices()
197197
);
198198
}
199-
async fn transaction(&mut self) -> Box<dyn super::Transaction> {
199+
async fn transaction<'b>(&'b mut self) -> Box<dyn super::Transaction + 'b> {
200200
panic!("nested transactions not supported")
201201
}
202202
async fn load_index(&mut self) -> Index {

0 commit comments

Comments
 (0)