mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
cargo sqlx prepare: delete query-*.json files as they're read
This commit is contained in:
committed by
Ryan Leckey
parent
07639a61ac
commit
119167e13a
@@ -121,6 +121,9 @@ fn run_prepare_step(cargo_args: Vec<String>) -> anyhow::Result<QueryData> {
|
||||
path.display()
|
||||
)
|
||||
}
|
||||
|
||||
// lazily remove the file, we don't care too much if we can't
|
||||
let _ = fs::remove_file(&path);
|
||||
}
|
||||
|
||||
Ok(data)
|
||||
|
||||
Reference in New Issue
Block a user