diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-09-22 18:25:52 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-22 18:25:52 +0530 |
| commit | c99a603b87a4f333541d54ad119eaafe35ae9a61 (patch) | |
| tree | e9e48cc7aca3ca2560c4c7e1be35d86843d8af8f | |
| parent | b36a10af7e31333f907b70237336ae4e690c4c1e (diff) | |
| parent | 04c108711e5be450b87ec2bf9cd628033972cd69 (diff) | |
| download | rust-c99a603b87a4f333541d54ad119eaafe35ae9a61.tar.gz rust-c99a603b87a4f333541d54ad119eaafe35ae9a61.zip | |
Rollup merge of #102036 - Patiga:remove-io-errorkind-other-use-in-std, r=Mark-Simulacrum
Remove use of `io::ErrorKind::Other` in std The documentation states that this `ErrorKind` is not used by the standard library. Instead, `io::ErrorKind::Uncategorized` should be used. The two instances are in the unstable API [linux_pidfd](https://github.com/rust-lang/rust/issues/82971).
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs index 26ae6281771..2ff8e600f7c 100644 --- a/library/std/src/sys/unix/process/process_unix.rs +++ b/library/std/src/sys/unix/process/process_unix.rs @@ -822,14 +822,14 @@ impl crate::os::linux::process::ChildExt for crate::process::Child { self.handle .pidfd .as_ref() - .ok_or_else(|| Error::new(ErrorKind::Other, "No pidfd was created.")) + .ok_or_else(|| Error::new(ErrorKind::Uncategorized, "No pidfd was created.")) } fn take_pidfd(&mut self) -> io::Result<PidFd> { self.handle .pidfd .take() - .ok_or_else(|| Error::new(ErrorKind::Other, "No pidfd was created.")) + .ok_or_else(|| Error::new(ErrorKind::Uncategorized, "No pidfd was created.")) } } |
