Skip to content

Commit 6acb415

Browse files
committed
Convert Into<ExitStatus> for ExitStatusError to From<ExitStatusError> for ExitStatus in std::process
1 parent fcf3006 commit 6acb415

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/process.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1738,9 +1738,9 @@ impl ExitStatusError {
17381738
}
17391739

17401740
#[unstable(feature = "exit_status_error", issue = "84908")]
1741-
impl Into<ExitStatus> for ExitStatusError {
1742-
fn into(self) -> ExitStatus {
1743-
ExitStatus(self.0.into())
1741+
impl From<ExitStatusError> for ExitStatus {
1742+
fn from(error: ExitStatusError) -> Self {
1743+
Self(error.0.into())
17441744
}
17451745
}
17461746

0 commit comments

Comments
 (0)