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.
This commit is contained in:
parent
2019147c56
commit
04c108711e
1 changed files with 2 additions and 2 deletions
|
@ -822,14 +822,14 @@ impl crate::os::linux::process::ChildExt for crate::process::Child {
|
||||||
self.handle
|
self.handle
|
||||||
.pidfd
|
.pidfd
|
||||||
.as_ref()
|
.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> {
|
fn take_pidfd(&mut self) -> io::Result<PidFd> {
|
||||||
self.handle
|
self.handle
|
||||||
.pidfd
|
.pidfd
|
||||||
.take()
|
.take()
|
||||||
.ok_or_else(|| Error::new(ErrorKind::Other, "No pidfd was created."))
|
.ok_or_else(|| Error::new(ErrorKind::Uncategorized, "No pidfd was created."))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue