Skip to content

Commit 8c0e1a7

Browse files
committed
document the dummy functions
1 parent b2abc7d commit 8c0e1a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,11 @@ pub trait AsyncConnection: SimpleAsyncConnection + Sized + Send {
334334
&mut self,
335335
) -> &mut <Self::TransactionManager as TransactionManager<Self>>::TransactionStateData;
336336

337+
// These functions allow the associated types (`ExecuteFuture`, `LoadFuture`, etc.) to
338+
// compile without a `where Self: '_` clause. This is needed the because bound causes
339+
// lifetime issues when using `transaction()` with generic `AsyncConnection`s.
337340
#[doc(hidden)]
338341
fn _silence_lint_on_execute_future(_: Self::ExecuteFuture<'_, '_>) {}
339-
340342
#[doc(hidden)]
341343
fn _silence_lint_on_load_future(_: Self::LoadFuture<'_, '_>) {}
342344
}

0 commit comments

Comments
 (0)