Skip to content

Commit d35e520

Browse files
Remove unnecessay .report() on ExitCode
1 parent 93083c0 commit d35e520

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/process.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ pub trait Termination {
21362136
impl Termination for () {
21372137
#[inline]
21382138
fn report(self) -> ExitCode {
2139-
ExitCode::SUCCESS.report()
2139+
ExitCode::SUCCESS
21402140
}
21412141
}
21422142

@@ -2162,7 +2162,7 @@ impl<E: fmt::Debug> Termination for Result<!, E> {
21622162
fn report(self) -> ExitCode {
21632163
let Err(err) = self;
21642164
eprintln!("Error: {err:?}");
2165-
ExitCode::FAILURE.report()
2165+
ExitCode::FAILURE
21662166
}
21672167
}
21682168

0 commit comments

Comments
 (0)