Skip to content

Commit a7170f8

Browse files
committed
Fix unused function warning in cargo-hammerwork binary
Add conditional compilation attribute to show_status function which is only used when postgres or mysql features are enabled.
1 parent 099196c commit a7170f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/cargo-hammerwork.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ async fn show_migration_status(database_url: &str) -> Result<(), Box<dyn std::er
161161
process::exit(1);
162162
}
163163

164+
#[cfg(any(feature = "postgres", feature = "mysql"))]
164165
async fn show_status<DB: sqlx::Database>(
165166
manager: &MigrationManager<DB>,
166167
) -> Result<(), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)