Remove unnecessay .report() on ExitCode
This commit is contained in:
parent
50872bdb99
commit
7013dc52d5
1 changed files with 2 additions and 2 deletions
|
@ -2136,7 +2136,7 @@ pub trait Termination {
|
|||
impl Termination for () {
|
||||
#[inline]
|
||||
fn report(self) -> ExitCode {
|
||||
ExitCode::SUCCESS.report()
|
||||
ExitCode::SUCCESS
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2162,7 +2162,7 @@ impl<E: fmt::Debug> Termination for Result<!, E> {
|
|||
fn report(self) -> ExitCode {
|
||||
let Err(err) = self;
|
||||
eprintln!("Error: {err:?}");
|
||||
ExitCode::FAILURE.report()
|
||||
ExitCode::FAILURE
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue