From 543395d80a3733b717b8adfb24180b68147cd504 Mon Sep 17 00:00:00 2001 From: Jos Ahrens Date: Fri, 19 Jul 2024 23:53:45 +0200 Subject: [PATCH] fix: build script new line at eof (#3353) When generating the build script, it will fail `cargo fmt -- --check` because it is missing a new line at the end of the file. --- sqlx-cli/src/migrate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sqlx-cli/src/migrate.rs b/sqlx-cli/src/migrate.rs index ed503c2a45..e00f6de651 100644 --- a/sqlx-cli/src/migrate.rs +++ b/sqlx-cli/src/migrate.rs @@ -474,7 +474,8 @@ pub fn build_script(migration_source: &str, force: bool) -> anyhow::Result<()> { fn main() {{ // trigger recompilation when a new migration is added println!("cargo:rerun-if-changed={migration_source}"); -}}"#, +}} +"#, ); fs::write("build.rs", contents)?;