mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(sqlx-cli): fix the build (#1969)
This fixes:
```
error[E0616]: field `target_directory` of struct `metadata::Metadata` is private
--> sqlx-cli/src/prepare.rs:175:47
|
175 | .env("CARGO_TARGET_DIR", metadata.target_directory.clone())
| ^^^^^^^^^^^^^^^^ private field
|
help: a method `target_directory` also exists, call it with parentheses
|
175 | .env("CARGO_TARGET_DIR", metadata.target_directory().clone())
| ++
```
This commit is contained in:
parent
d6c4eff81a
commit
b9a8f90b0c
@ -172,7 +172,7 @@ hint: This command only works in the manifest directory of a Cargo package."#
|
||||
))
|
||||
.env("SQLX_OFFLINE", "false")
|
||||
.env("DATABASE_URL", url)
|
||||
.env("CARGO_TARGET_DIR", metadata.target_directory.clone())
|
||||
.env("CARGO_TARGET_DIR", metadata.target_directory().clone())
|
||||
.status()?
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user