Skip to content

Commit 4ff9efe

Browse files
Zarathustra2jrasanen
authored andcommitted
Hide docs for any (launchbadge#3254)
1 parent 8bead33 commit 4ff9efe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sqlx-postgres/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ pub mod types;
2626
mod value;
2727

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

3137
#[cfg(feature = "migrate")]

0 commit comments

Comments
 (0)