Skip to content

Commit b9a8f90

Browse files
authored
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()) | ++ ```
1 parent d6c4eff commit b9a8f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-cli/src/prepare.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ hint: This command only works in the manifest directory of a Cargo package."#
172172
))
173173
.env("SQLX_OFFLINE", "false")
174174
.env("DATABASE_URL", url)
175-
.env("CARGO_TARGET_DIR", metadata.target_directory.clone())
175+
.env("CARGO_TARGET_DIR", metadata.target_directory().clone())
176176
.status()?
177177
};
178178

0 commit comments

Comments
 (0)