Skip to content

Commit

Permalink
Hide docs for any (#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarathustra2 authored Jun 6, 2024
1 parent 5da0f73 commit c57bcb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sqlx-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ pub mod types;
mod value;

#[cfg(feature = "any")]
// We are hiding the any module with its AnyConnectionBackend trait
// so that IDEs don't show it in the autocompletion list
// and end users don't accidentally use it. This can result in
// nested transactions not behaving as expected.
// For more information, see https://github.com/launchbadge/sqlx/pull/3254#issuecomment-2144043823
#[doc(hidden)]
pub mod any;

#[cfg(feature = "migrate")]
Expand Down

0 comments on commit c57bcb9

Please sign in to comment.