diff options
| author | Ulf Lilleengen <[email protected]> | 2025-08-16 11:16:38 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-08-25 19:44:50 +0200 |
| commit | cd7a7f97c0a5e928bac7299019d4320f4efc9ba6 (patch) | |
| tree | 717ef55b799d16477002739b8cddc5df29d0b424 | |
| parent | 1f229f745c0ccee926ae5c4cf6732d41c4beb531 (diff) | |
fix: add back missing
| -rw-r--r-- | release/src/cargo.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/src/cargo.rs b/release/src/cargo.rs index 498dfeb97..c1ed4118f 100644 --- a/release/src/cargo.rs +++ b/release/src/cargo.rs | |||
| @@ -15,6 +15,12 @@ pub struct Artifact { | |||
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | /// Execute cargo with the given arguments and from the specified directory. | 17 | /// Execute cargo with the given arguments and from the specified directory. |
| 18 | pub fn run(args: &[String], cwd: &Path) -> Result<()> { | ||
| 19 | run_with_env::<[(&str, &str); 0], _, _>(args, cwd, [], false)?; | ||
| 20 | Ok(()) | ||
| 21 | } | ||
| 22 | |||
| 23 | /// Execute cargo with the given arguments and from the specified directory. | ||
| 18 | pub fn run_with_env<I, K, V>(args: &[String], cwd: &Path, envs: I, capture: bool) -> Result<String> | 24 | pub fn run_with_env<I, K, V>(args: &[String], cwd: &Path, envs: I, capture: bool) -> Result<String> |
| 19 | where | 25 | where |
| 20 | I: IntoIterator<Item = (K, V)> + core::fmt::Debug, | 26 | I: IntoIterator<Item = (K, V)> + core::fmt::Debug, |
