Convert Into<ExitStatus> for ExitStatusError
to From<ExitStatusError> for ExitStatus
in std::process
This commit is contained in:
parent
fcf3006e01
commit
6acb415e7c
1 changed files with 3 additions and 3 deletions
|
@ -1738,9 +1738,9 @@ impl ExitStatusError {
|
|||
}
|
||||
|
||||
#[unstable(feature = "exit_status_error", issue = "84908")]
|
||||
impl Into<ExitStatus> for ExitStatusError {
|
||||
fn into(self) -> ExitStatus {
|
||||
ExitStatus(self.0.into())
|
||||
impl From<ExitStatusError> for ExitStatus {
|
||||
fn from(error: ExitStatusError) -> Self {
|
||||
Self(error.0.into())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue