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.
1 parent 541d6ad commit 5e7c2b5Copy full SHA for 5e7c2b5
src/reaper/wait.rs
@@ -234,11 +234,12 @@ cfg_if::cfg_if! {
234
impl WaitableChild {
235
fn new(child: std::process::Child) -> io::Result<Self> {
236
// std::process::Child id must provide a positive PID value
237
- let exit_filter = unsafe { Filter::new(Exit::from_pid(NonZeroI32::new_unchecked(
+ let exit_filter = unsafe {
238
+ Filter::new(Exit::from_pid(NonZeroI32::new_unchecked(
239
child
- .id()
240
- .try_into()
241
- .expect("could not transform pid to i32 type")
+ .id()
+ .try_into()
242
+ .expect("could not transform pid to i32 type"),
243
)))?
244
};
245
0 commit comments