Skip to content

Commit 543395d

Browse files
authored
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.
1 parent 4683cc3 commit 543395d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlx-cli/src/migrate.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ pub fn build_script(migration_source: &str, force: bool) -> anyhow::Result<()> {
474474
fn main() {{
475475
// trigger recompilation when a new migration is added
476476
println!("cargo:rerun-if-changed={migration_source}");
477-
}}"#,
477+
}}
478+
"#,
478479
);
479480

480481
fs::write("build.rs", contents)?;

0 commit comments

Comments
 (0)