1
Fork 0

Re-use std::sealed::Sealed in os/linux/process.

This commit is contained in:
Mara Bos 2021-08-04 14:15:05 +02:00
parent d08460e70c
commit f280a126b2
2 changed files with 7 additions and 12 deletions

View file

@ -205,6 +205,10 @@ pub struct Child {
pub stderr: Option<ChildStderr>,
}
/// Allows extension traits within `std`.
#[unstable(feature = "sealed", issue = "none")]
impl crate::sealed::Sealed for Child {}
impl AsInner<imp::Process> for Child {
fn as_inner(&self) -> &imp::Process {
&self.handle