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