@@ -211,15 +211,6 @@ impl<'a> BootstrapCommand {
211
211
exec_ctx. as_ref ( ) . start ( self , OutputMode :: Capture , OutputMode :: Print )
212
212
}
213
213
214
- /// Spawn the command in background, while capturing and returns a handle to stream the output.
215
- #[ track_caller]
216
- pub fn stream_capture (
217
- & ' a mut self ,
218
- exec_ctx : impl AsRef < ExecutionContext > ,
219
- ) -> Option < StreamingCommand > {
220
- exec_ctx. as_ref ( ) . stream ( self , OutputMode :: Capture , OutputMode :: Capture )
221
- }
222
-
223
214
/// Spawn the command in background, while capturing and returning stdout, and printing stderr.
224
215
#[ track_caller]
225
216
pub fn stream_capture_stdout (
@@ -231,7 +222,7 @@ impl<'a> BootstrapCommand {
231
222
232
223
/// Mark the command as being executed, disarming the drop bomb.
233
224
/// If this method is not called before the command is dropped, its drop will panic.
234
- pub fn mark_as_executed ( & mut self ) {
225
+ fn mark_as_executed ( & mut self ) {
235
226
self . drop_bomb . defuse ( ) ;
236
227
}
237
228
@@ -663,7 +654,7 @@ impl ExecutionContext {
663
654
664
655
let stdout = child. stdout . take ( ) ;
665
656
let stderr = child. stderr . take ( ) ;
666
- return Some ( StreamingCommand { child, stdout, stderr } ) ;
657
+ Some ( StreamingCommand { child, stdout, stderr } )
667
658
}
668
659
}
669
660
0 commit comments