diff --git a/library/std/src/sys/pal/mikros/process.rs b/library/std/src/sys/pal/mikros/process.rs index 8deab33a1de..1934b08190b 100644 --- a/library/std/src/sys/pal/mikros/process.rs +++ b/library/std/src/sys/pal/mikros/process.rs @@ -107,23 +107,20 @@ pub fn spawn( _needs_stdin: bool, ) -> io::Result<(Process, StdioPipes)> { let stdin = match self.stdin.take() { - None => None, Some(Stdio::Null) => None, - Some(Stdio::Inherit) => *STDIN_FD.get().unwrap(), + None | Some(Stdio::Inherit) => *STDIN_FD.get().unwrap(), Some(Stdio::MakePipe) => todo!(), Some(Stdio::InheritFile(file)) => Some((file.fs_pid, file.fd)), }; let stdout = match self.stdout.take() { - None => None, Some(Stdio::Null) => None, - Some(Stdio::Inherit) => *STDOUT_FD.get().unwrap(), + None | Some(Stdio::Inherit) => *STDOUT_FD.get().unwrap(), Some(Stdio::MakePipe) => todo!(), Some(Stdio::InheritFile(file)) => Some((file.fs_pid, file.fd)), }; let stderr = match self.stderr.take() { - None => None, Some(Stdio::Null) => None, - Some(Stdio::Inherit) => *STDERR_FD.get().unwrap(), + None | Some(Stdio::Inherit) => *STDERR_FD.get().unwrap(), Some(Stdio::MakePipe) => todo!(), Some(Stdio::InheritFile(file)) => Some((file.fs_pid, file.fd)), };