File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
### Changed
9
9
10
10
- ` winapi ` is no longer required on unix; ` nix ` is no longer required on windows.
11
+ - Relaxed lifetime restrictions of ` Build::cmd ` and ` Build::cargo ` .
11
12
12
13
## [ 0.9.0] - 2020-07-01
13
14
Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ impl BuildDirectory {
188
188
/// API to interact with a running build.
189
189
///
190
190
/// This is created from [`BuildDirectory::build`](struct.BuildDirectory.html#method.build)
191
- pub struct Build < ' b > {
192
- dir : & ' b BuildDirectory ,
193
- toolchain : & ' b Toolchain ,
191
+ pub struct Build < ' ws > {
192
+ dir : & ' ws BuildDirectory ,
193
+ toolchain : & ' ws Toolchain ,
194
194
sandbox : SandboxBuilder ,
195
195
}
196
196
197
- impl Build < ' _ > {
197
+ impl < ' ws > Build < ' ws > {
198
198
/// Run a command inside the sandbox.
199
199
///
200
200
/// Any `cargo` invocation will automatically be configured to use a target directory mounted
@@ -219,7 +219,7 @@ impl Build<'_> {
219
219
/// # Ok(())
220
220
/// # }
221
221
/// ```
222
- pub fn cmd < R : Runnable > ( & self , bin : R ) -> Command {
222
+ pub fn cmd < ' pl , R : Runnable > ( & self , bin : R ) -> Command < ' ws , ' pl > {
223
223
let container_dir = & * crate :: cmd:: container_dirs:: TARGET_DIR ;
224
224
225
225
Command :: new_sandboxed (
@@ -256,7 +256,7 @@ impl Build<'_> {
256
256
/// # Ok(())
257
257
/// # }
258
258
/// ```
259
- pub fn cargo ( & self ) -> Command {
259
+ pub fn cargo < ' pl > ( & self ) -> Command < ' ws , ' pl > {
260
260
self . cmd ( self . toolchain . cargo ( ) )
261
261
}
262
262
You can’t perform that action at this time.
0 commit comments