Skip to content

Commit 2403b91

Browse files
authored
process: upgrade Command::spawn_with to use FnOnce (#7511)
1 parent f1d3b06 commit 2403b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio/src/process/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ impl Command {
933933
#[inline]
934934
pub fn spawn_with(
935935
&mut self,
936-
with: impl Fn(&mut StdCommand) -> io::Result<StdChild>,
936+
with: impl FnOnce(&mut StdCommand) -> io::Result<StdChild>,
937937
) -> io::Result<Child> {
938938
// On two lines to circumvent a mutable borrow check failure.
939939
let child = with(&mut self.std)?;

0 commit comments

Comments
 (0)