Skip to content

Commit b38a74b

Browse files
committed
AsyncConnectionWrapper: Compile, but don't run doc comment snippets
These snippets are missing calls to `create_tables()`, but since that function is async and the tests are sync, we can't easily use that function to create the `users` table that these snippets are referring to.
1 parent 18da19a commit b38a74b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/async_connection_wrapper.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub trait BlockOn {
4343
///
4444
/// # Examples
4545
///
46-
/// ```rust
46+
/// ```rust,no_run
4747
/// # include!("doctest_setup.rs");
4848
/// use schema::users;
4949
/// use diesel_async::async_connection_wrapper::AsyncConnectionWrapper;
@@ -61,7 +61,7 @@ pub trait BlockOn {
6161
///
6262
/// If you are in the scope of an existing tokio runtime you need to use
6363
/// `tokio::task::spawn_blocking` to encapsulate the blocking tasks
64-
/// ```rust
64+
/// ```rust,no_run
6565
/// # include!("doctest_setup.rs");
6666
/// use schema::users;
6767
/// use diesel_async::async_connection_wrapper::AsyncConnectionWrapper;

0 commit comments

Comments
 (0)