We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd7b62 commit 7eb4fe9Copy full SHA for 7eb4fe9
database/src/tests/mod.rs
@@ -50,10 +50,6 @@ impl TestContext {
50
// cfg-gated to keep non-unix builds happy.
51
#[cfg(unix)]
52
Host::Unix(_) => panic!("Unix sockets in Postgres connection string are not supported"),
53
-
54
- // On non-unix targets the enum has no other variants.
55
- #[cfg(not(unix))]
56
- _ => unreachable!("non-TCP hosts cannot appear on this platform"),
57
};
58
59
// We need to connect to the database against, because Postgres doesn't allow
@@ -143,6 +139,7 @@ where
143
139
144
140
/// Runs a test against an actual database.
145
141
/// Checks both Postgres and SQLite.
142
+#[allow(dead_code)]
146
pub async fn run_db_test<F, Fut>(f: F)
147
where
148
F: Fn(TestContext) -> Fut + Clone,
0 commit comments