Skip to content

Commit 74929bd

Browse files
committed
fix loop
1 parent 651cc09 commit 74929bd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/std/core.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ impl StdChildWrapper for Child {
229229
&mut self.stderr
230230
}
231231
fn id(&self) -> u32 {
232-
self.id()
232+
Child::id(self)
233233
}
234234
fn try_wait(&mut self) -> Result<Option<ExitStatus>> {
235-
self.try_wait()
235+
Child::try_wait(self)
236236
}
237237
fn wait(&mut self) -> Result<ExitStatus> {
238-
self.wait()
238+
Child::wait(self)
239239
}
240240
#[cfg(unix)]
241241
fn signal(&self, sig: i32) -> Result<()> {

src/tokio/core.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,16 @@ impl TokioChildWrapper for Child {
226226
&mut self.stderr
227227
}
228228
fn id(&self) -> Option<u32> {
229-
self.id()
229+
Child::id(self)
230230
}
231231
fn start_kill(&mut self) -> Result<()> {
232-
self.start_kill()
232+
Child::start_kill(self)
233233
}
234234
fn try_wait(&mut self) -> Result<Option<ExitStatus>> {
235-
self.try_wait()
235+
Child::try_wait(self)
236236
}
237237
fn wait(&mut self) -> Pin<Box<dyn Future<Output = Result<ExitStatus>> + Send + '_>> {
238-
Box::pin(self.wait())
238+
Box::pin(Child::wait(self))
239239
}
240240
#[cfg(unix)]
241241
fn signal(&self, sig: i32) -> Result<()> {

0 commit comments

Comments
 (0)