Skip to content

Commit

Permalink
Fix inconsistent trait impl
Browse files Browse the repository at this point in the history
This was exposed by a recent fix on nightly to rust-lang/rust#71550.
  • Loading branch information
Mark-Simulacrum committed Jun 28, 2020
1 parent 75936b2 commit 72d38b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/src/pool/both.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<'a> Connection for BothTransaction<'a> {
self.b.conn().maybe_create_indices()
);
}
async fn transaction(&mut self) -> Box<dyn super::Transaction> {
async fn transaction<'b>(&'b mut self) -> Box<dyn super::Transaction + 'b> {
panic!("nested transactions not supported")
}
async fn load_index(&mut self) -> Index {
Expand Down

0 comments on commit 72d38b6

Please sign in to comment.