Skip to content

Commit daab93d

Browse files
committed
refactor(postgres): Remove two more deprecated cfg flag uses (from docstrings)
Signed-off-by: Joshua Potts <[email protected]>
1 parent 18be273 commit daab93d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sqlx-core/src/acquire.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ use std::ops::{Deref, DerefMut};
1313
/// connection or [`begin`][`Acquire::begin`] a transaction, then you can do it
1414
/// like that:
1515
///
16-
/// ```rust
16+
/// ```rust,ignore
1717
/// # use sqlx::{Acquire, postgres::Postgres, error::BoxDynError};
18-
/// # #[cfg(any(postgres_9_6, postgres_15))]
1918
/// async fn run_query<'a, A>(conn: A) -> Result<(), BoxDynError>
2019
/// where
2120
/// A: Acquire<'a, Database = Postgres>,
@@ -32,10 +31,9 @@ use std::ops::{Deref, DerefMut};
3231
/// If you run into a lifetime error about "implementation of `sqlx::Acquire` is
3332
/// not general enough", the [workaround] looks like this:
3433
///
35-
/// ```rust
34+
/// ```rust,ignore
3635
/// # use std::future::Future;
3736
/// # use sqlx::{Acquire, postgres::Postgres, error::BoxDynError};
38-
/// # #[cfg(any(postgres_9_6, postgres_15))]
3937
/// fn run_query<'a, 'c, A>(conn: A) -> impl Future<Output = Result<(), BoxDynError>> + Send + 'a
4038
/// where
4139
/// A: Acquire<'c, Database = Postgres> + Send + 'a,
@@ -55,9 +53,8 @@ use std::ops::{Deref, DerefMut};
5553
/// connection as an argument to a function, then it's easier to just accept a
5654
/// mutable reference to a database connection like so:
5755
///
58-
/// ```rust
56+
/// ```rust,ignore
5957
/// # use sqlx::{postgres::PgConnection, error::BoxDynError};
60-
/// # #[cfg(any(postgres_9_6, postgres_15))]
6158
/// async fn run_query(conn: &mut PgConnection) -> Result<(), BoxDynError> {
6259
/// sqlx::query!("SELECT 1 as v").fetch_one(&mut *conn).await?;
6360
/// sqlx::query!("SELECT 2 as v").fetch_one(&mut *conn).await?;

0 commit comments

Comments
 (0)