Skip to content

Commit 0fb077a

Browse files
authored
Rollup merge of rust-lang#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](rust-lang#82971).
2 parents 626b02a + 04c1087 commit 0fb077a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/sys/unix/process/process_unix.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -822,14 +822,14 @@ impl crate::os::linux::process::ChildExt for crate::process::Child {
822822
self.handle
823823
.pidfd
824824
.as_ref()
825-
.ok_or_else(|| Error::new(ErrorKind::Other, "No pidfd was created."))
825+
.ok_or_else(|| Error::new(ErrorKind::Uncategorized, "No pidfd was created."))
826826
}
827827

828828
fn take_pidfd(&mut self) -> io::Result<PidFd> {
829829
self.handle
830830
.pidfd
831831
.take()
832-
.ok_or_else(|| Error::new(ErrorKind::Other, "No pidfd was created."))
832+
.ok_or_else(|| Error::new(ErrorKind::Uncategorized, "No pidfd was created."))
833833
}
834834
}
835835

0 commit comments

Comments
 (0)