Removes unnecessary duplication with a blanket implementation (#571)

This commit is contained in:
Seung-Li Maeda
2020-12-01 22:32:48 -08:00
committed by GitHub
parent f9116dd0f3
commit c62a1149c8
2 changed files with 8 additions and 19 deletions

View File

@@ -230,15 +230,6 @@ pub enum ExecutorExitStatus {
Dry,
}
impl Check for ExecutorExitStatus {
fn check(self) -> Result<()> {
match self {
ExecutorExitStatus::Wet(e) => e.check(),
ExecutorExitStatus::Dry => Ok(()),
}
}
}
impl CheckWithCodes for ExecutorExitStatus {
fn check_with_codes(self, codes: &[i32]) -> Result<()> {
match self {