Skip to content

Commit

Permalink
Hide docs for any (launchbadge#3254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarathustra2 authored and jrasanen committed Oct 14, 2024
1 parent c6f1c3a commit 5294ed4
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 5294ed4

Please sign in to comment.