We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Command::spawn_with
FnOnce
1 parent f1d3b06 commit 2403b91Copy full SHA for 2403b91
tokio/src/process/mod.rs
@@ -933,7 +933,7 @@ impl Command {
933
#[inline]
934
pub fn spawn_with(
935
&mut self,
936
- with: impl Fn(&mut StdCommand) -> io::Result<StdChild>,
+ with: impl FnOnce(&mut StdCommand) -> io::Result<StdChild>,
937
) -> io::Result<Child> {
938
// On two lines to circumvent a mutable borrow check failure.
939
let child = with(&mut self.std)?;
0 commit comments