Skip to content

Commit 7eb4fe9

Browse files
committed
Fix windows linter issue
1 parent 9fd7b62 commit 7eb4fe9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

database/src/tests/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ impl TestContext {
5050
// cfg-gated to keep non-unix builds happy.
5151
#[cfg(unix)]
5252
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"),
5753
};
5854

5955
// We need to connect to the database against, because Postgres doesn't allow
@@ -143,6 +139,7 @@ where
143139

144140
/// Runs a test against an actual database.
145141
/// Checks both Postgres and SQLite.
142+
#[allow(dead_code)]
146143
pub async fn run_db_test<F, Fut>(f: F)
147144
where
148145
F: Fn(TestContext) -> Fut + Clone,

0 commit comments

Comments
 (0)